Page 61 - Ai Robogenius
P. 61
on start
play melody at tempo 120 (bpm) until done
Editor Gallery
120 Done
Your block-based code should now look like this.
STEP - 7 Click on Start the simulator button to run the program.
Output
You will observe that when the program runs, the Micro:bit starts playing the
melody, you have created.
SIMPLE DIGITAL THERMOMETER
A digital thermometer is a simple device used to measure the surrounding
temperature helping people understand how hot or cold the environment is. Using
the Micro:bit’s built-in temperature sensor, it detects temperature changes and
shows the reading on its LED display.
Micro:Bit and the World Around Us
59

