1Task
Switch on the coloured LED at the push of a button.
So you can see later if the time measurement is running.
Solution
You can also use a color other than green.
2Task
1. Switch the LED off again. It is best to use the other button.
2. Tip: Also use a "repeat indefinitely" loop, then you can now switch the LED and later the clock on and off.Solution
The "repeat indefinitely" block can be found under "Control -> Loops".
Tip: Don't forget to always test your code on the Calliope!
3Task
1. Now add the timer to your program.
The timer is a clock built into the Calliope. It is very accurate (milliseconds), but can never be stopped. But you can reset it to zero.
2. With the first press of the button you set the timer to zero and after the second you could display the result.Solution
You can use the stopwatch now.
You can also extend the program. At the moment the time is displayed in milliseconds. You could display it in seconds.
Or you can add a countdown.
Or the clock is no longer stopped by pressing a button but by another sensor.
Or...or...or...or
This text as well as the images are published under a CC BY-SA 3.0 DE license popup: yes. It was originally published in German popup: yes by TüftelAkademie popup: yes and translated into English by the Calliope team.