diff --git a/docs/calliope/arbeitsheft/35-1_smart-licht.md b/docs/calliope/arbeitsheft/35-1_smart-licht.md index 3f557e350..98de4f9e9 100644 --- a/docs/calliope/arbeitsheft/35-1_smart-licht.md +++ b/docs/calliope/arbeitsheft/35-1_smart-licht.md @@ -2,7 +2,7 @@ ```ghost basic.forever(function () { -if (input.lightLevel() > 20) { +if (input.soundLevel() > 20) { basic.showLeds(` # # # # # # # # # # @@ -28,7 +28,7 @@ The clapping is recognized via a permanent query of the measured volume values. ## Create condition Define a threshold value, e.g. `20` for the volume of your clap! -Replace the "true" block in the query with a ``||logic.compare (=)||`` block to compare the measured ``||input.light level||`` with the threshold value. +Replace the "true" block in the query with a ``||logic.compare (=)||`` block to compare the measured ``||input.sound level||`` with the threshold value. diff --git a/docs/calliope/arbeitsheft/42-2_orakel.md b/docs/calliope/arbeitsheft/42-2_orakel.md index 75010ced7..b46879292 100644 --- a/docs/calliope/arbeitsheft/42-2_orakel.md +++ b/docs/calliope/arbeitsheft/42-2_orakel.md @@ -13,7 +13,7 @@ input.onGesture(Gesture.Shake, function () { if (zufall == 3) { basic.showString("Vielleicht") } -} +}); ``` ## Task @showdialog diff --git a/docs/calliope/arbeitsheft/49-1_schaetzspiel.md b/docs/calliope/arbeitsheft/49-1_schaetzspiel.md index 25b66139d..1134e045b 100644 --- a/docs/calliope/arbeitsheft/49-1_schaetzspiel.md +++ b/docs/calliope/arbeitsheft/49-1_schaetzspiel.md @@ -19,6 +19,10 @@ basic.forever(function () { }) ``` +```package +grove=github:calliope-edu/pxt-grove +``` + ## Estimation game @showdialog Programme an estimation game that measures the distance between two objects. The Calliope mini measures the distance - in secret. You estimate the distance and the Calliope mini solves and displays the measured distance. @@ -58,9 +62,7 @@ Finally, let a ‘?’ appear permanently on the LED matrix. Draw a ? with the b ## Done! 👏 Click on ``|Download|``, test your programme on the Calliope mini and try to estimate the distance correctly! -```package -grove=github:calliope-edu/pxt-grove -``` + diff --git a/docs/calliope/arbeitsheft/50-2_personenzaehler.md b/docs/calliope/arbeitsheft/50-2_personenzaehler.md index 2a5d0fcff..45cec2dbc 100644 --- a/docs/calliope/arbeitsheft/50-2_personenzaehler.md +++ b/docs/calliope/arbeitsheft/50-2_personenzaehler.md @@ -22,6 +22,11 @@ basic.forever(function () { }) ``` +```package +grove=github:calliope-edu/pxt-grove +``` + + ## Task @showdialog Is the class complete? Use the ultrasonic sensor to check whether all the children are back in the classroom. Program a people counter to count the number of people entering the classroom. @@ -66,7 +71,3 @@ Tip: Use the variable ``||variables.peoplecounter|||`` ## That's it! ✨ Click on ``|Download|`` to transfer your program to your Calliope mini and test the people counter. - -```package -grove=github:calliope-edu/pxt-grove -``` diff --git a/libs/core/blocks-test/pins.blocks b/libs/core/blocks-test/pins.blocks index f2024a3ac..63972f497 100755 --- a/libs/core/blocks-test/pins.blocks +++ b/libs/core/blocks-test/pins.blocks @@ -1,127 +1,7 @@ PulseValue.LowDigitalPin.P5AnalogPin.P95AnalogPin.P1020000DigitalPin.P65AnalogPin.P135AnalogPin.P815000NumberFormat.Int8BE0FALSE0PulseValue.LowDigitalPin.P91023004DigitalPin.P9DigitalPin.P0PulseValue.Low diff --git a/libs/core/blocks-test/test.blocks b/libs/core/blocks-test/test.blocks index 4b5c3de46..2ac5adc4c 100644 --- a/libs/core/blocks-test/test.blocks +++ b/libs/core/blocks-test/test.blocks @@ -1,127 +1,7 @@ PulseValue.LowDigitalPin.P5AnalogPin.P95AnalogPin.P1020000DigitalPin.P65AnalogPin.P135AnalogPin.P815000NumberFormat.Int8BE0FALSE0PulseValue.LowDigitalPin.P91023004DigitalPin.P9DigitalPin.P0PulseValue.Low