Effect Demonstration Example for micro:bit
The waterproof temperature sensor detects the ocean temperature.When the temperature exceeds 29 degrees Celsius, the Microbit LED matrix shows a sad face, and the LED light gradually turns white, simulating coral bleaching.When the temperature drops below 29 degrees Celsius, the Microbit LED matrix shows a happy face, and the coral returns to its original color.
Demonstration Video
Hardware Diagram
| SENSOR | PIN |
|---|---|
| Waterproof Temperature Interface | C0 |
| RGB LED Strip Interface | P1 |
Example Code
Mind+ Upload Mode User Library Link for Building Block Expansion Board

Download the Example Code
Coral Reef kit for microbit.mpcode
Was this article helpful?

