Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to v7 #303

Merged
merged 21 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/calliope/arbeitsheft/23-4_fitness.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 23 4_Fitness

```ghost
let Tempo = 1000
let tempo = 1000
basic.setLedColor(0xff0000)
basic.pause(tempo)
for (let index = 0; index < 2; index++) {
Expand Down Expand Up @@ -37,8 +37,8 @@ Complete your program.
## Use variables @showdialog
Use a variable to define the speed of your animation and adjust it easily.

## Create variable Tempo
Create a ``||variables.variable||`` and name it "Tempo".
## Create variable tempo
Create a ``||variables.variable||`` and name it "tempo".

```
```
Expand Down
11 changes: 6 additions & 5 deletions docs/calliope/arbeitsheft/33-4_licht.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# 33 4 Light

```ghost
let brightness = input.lightLevel();
input.onButtonEvent(Button.B, input.buttonEventClick(), function () {
basic.showNumber(Licht)
basic.showNumber(brightness)
})
```

## Task @showdialog
Write a program that saves the measured light value in a variable when the LED matrix is switched off and then display the saved value on the LED matrix.

## Create variable
Create a ``||variables.variable||`` and name it "Light".
Create a ``||variables.variable||`` and name it "brightness".

```
```
![](https://calliope.cc/tutorials/variable_licht.png)

## Save light intensity @showdialog
If button A is clicked, save the measured light intensity in the variable "Light".
If button A is clicked, save the measured light intensity in the variable "brightness".

## Define input
Select the block ``||input.on button A is clicked|||`` as input.
Expand All @@ -28,15 +29,15 @@ Use the ``||variables.set light to||`` block to set the value of the variable to


## Show light intensity @showdialog
When button B is clicked, show the value of the variable "Light".
When button B is clicked, show the value of the variable "brightness".

## Define input
Place another block ``|| input.on button A ||`` clicked and change it to ``|| input.on button B ||`` clicked.

![Button B](https://calliope.cc/tutorials/kopf_a_b.png)

## Define output
Use the ``|| basic.show number||`` block and display the value of the variable``||variables.light||``.
Use the ``|| basic.show number||`` block and display the value of the variable``||variables.brightness||``.


## Done! 👏
Expand Down
21 changes: 11 additions & 10 deletions docs/calliope/arbeitsheft/42-2_orakel.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# 42 2 Oracle

```ghost
let Zufall = 0
let zufall = 0
input.onGesture(Gesture.Shake, function () {
Zufall = randint(0, 2)
if (Zufall == 1) {
basic.showString("Ja")
}
if (Zufall == 2) {
basic.showString("Nein")
}
if (Zufall == 3) {
basic.showString("Vielleicht")
zufall = randint(0, 2)
if (zufall == 1) {
basic.showString("Ja")
}
if (zufall == 2) {
basic.showString("Nein")
}
if (zufall == 3) {
basic.showString("Vielleicht")
}
}
```

Expand Down
8 changes: 4 additions & 4 deletions docs/calliope/arbeitsheft/49-1_schaetzspiel.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# 49 1 Estimation game

```ghost
let Entfernung = 0
let distance = 0
input.onButtonEvent(Button.A, input.buttonEventValue(ButtonEvent.Click), function () {
Entfernung = Math.round(grove.measureInCentimeters(DigitalPin.C16))
distance = Math.round(grove.measureInCentimeters(DigitalPin.C16))
})
input.onButtonEvent(Button.B, input.buttonEventValue(ButtonEvent.Click), function () {
basic.showNumber(Entfernung)
basic.showNumber(distance)
})
basic.forever(function () {
basic.showLeds(`
Expand All @@ -32,7 +32,7 @@ Press button A to measure the distance and save it in a variable. Press button B
Insert the block ``||input.on button A is clicked||`` twice and change the button to ``B`` for one block. Tip: You can duplicate the block by right-clicking.

## Define variable
To save the distance when the button is pressed and retrieve it later, create a ``||variable.variable||`` and name it *Distance*.
To save the distance when the button is pressed and retrieve it later, create a ``||variable.variable||`` and name it *distance*.


```
Expand Down
2 changes: 1 addition & 1 deletion docs/calliope/arbeitsheft/50-2_personenzaehler.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ Click on ``|Download|`` to transfer your program to your Calliope mini and test

```package
grove=github:calliope-edu/pxt-grove

```
38 changes: 37 additions & 1 deletion docs/courses.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

A collection of courses and tutorials built for the @boardname@.

## First lessons with MakeCode and the Calliope mini

A sequence of six beginner lessons, ideal for getting started with the Calliope mini. Students will learn core computing concepts by making and coding engaging projects.

```codecard
[{
"name": "First Lessons",
"description": "A sequence of lessons from the Calliope mini Educational Foundation that provide a pathway through six projects, ideal for getting started with the Calliope mini",
"url":"https://microbit.org/teach/lessons/first-lessons-with-makecode-and-the-microbit",
"imageUrl": "/static/courses/first-lessons.png"
}]
```

## Intro to Computer Science

MakeCode's course for learning Computer Science with the Calliope mini. This is a 14 week computer science course for middle school grades 6-8.
Expand Down Expand Up @@ -48,6 +61,29 @@ Courses contributed by educators to teach computing, science, and technology in
}]
```

## Mr. Morrison Lessons

Lessons aimed at P4-7 (Yr 3-6, aged 7-12) but could be adapted for use with older or younger learners. Regardless of age, if your learners have not used Calliope minis before the best place to start is the 'Starter Lessons' followed by the 'Beyond Basics' Lessons.

```codecard
[{
"name": "Calliope mini Starter Lessons",
"description": "Learn to create code, make programs to read inputs and write to outputs.",
"url": "https://mrmorrison.co.uk/microbit/starter/",
"imageUrl": "/static/courses/mr-morrison/starter-lessons.png"
}, {
"name": "Calliope mini Beyond Basics",
"description": "Take a step past the basics and learn to use logic with inputs and outputs.",
"url": "https://mrmorrison.co.uk/microbit/beyondbasics/",
"imageUrl": "/static/courses/mr-morrison/beyond-basics.png"
}, {
"name": "Calliope mini Data and Sustainability",
"description": "Learn to record and analyse data using the Calliope mini, then learn to design and build a smart sustainable home.",
"url": "https://mrmorrison.co.uk/microbit/datasustainability/",
"imageUrl": "/static/courses/mr-morrison/data-sustainability.png"
}]
```

## Computers and programming

Tutorials, lessons, and mini-courses about programming and computing.
Expand All @@ -66,7 +102,7 @@ Tutorials, lessons, and mini-courses about programming and computing.
}, {
"name": "Networking with the Calliope mini",
"description": "A series of activities to teach the basics of computer networks.",
"url": "https://microbit.nominetresearch.uk/",
"url": "https://www.digitaltechnologieshub.edu.au/search/networking-with-the-micro-bit/",
"imageUrl": "/static/courses/networking-book.png"
}, {
"name": "SparkFun Videos",
Expand Down
Loading
Loading