From 60aa39cc0956471c6c9342f90535906e9dbff915 Mon Sep 17 00:00:00 2001 From: Amerlander Date: Tue, 24 Sep 2024 12:18:54 +0200 Subject: [PATCH] fix light level --- docs/calliope/arbeitsheft/35-1_smart-licht.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.