Code to build a simple Thermometer using the BBC Microbit_V2 Microcontroler.
The code was written using the makecode editor for the BBC Microbit https://makecode.microbit.org/#editor
- An 25 LED Matrix to display the Temperature as a Graph.
- Uppon Pressing Button A the Temperature is display as text on the led Matrix instead of a Graph.
- When reaching a Temperature of 30 °C The Microbit will make a repeating sound signal (a smal melody played in intervals) till it reaches 40 °C.
After reaching 40°C it will make an audible alarm noise (3 repeating beeps) till it reaches 50°C.
When reaching 50°C the Thermometer wich make a quickly repeating alarm noise and displays a Skull on th LED Matrix.
For those who are annoyed by the sound warning it can be mutet via pressing the B Button.
In case the warning is wanted again, sound can be reanabled via pressing the Button A and B or Pressing the AB Button on the back of the Microbit_V2.