Skip to content

Commit

Permalink
add orglogowide and fix workbook courses
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Aug 21, 2024
1 parent 7b80671 commit bb911f8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
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
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
```
Binary file added docs/static/orglogowide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bb911f8

Please sign in to comment.