Example Code for micro:bit-Makecode Tomato Timer

Last revision 2026/05/29

This article guides through creating a 25-minute tomato timer using micro:bit and MakeCode, featuring hardware setup, software extensions, wiring, and sample code with RGB LED ring and buzzer integration.

Hardware Preparation

  • micro:bit * 1
  • IO Expansion Board * 1
  • RGB LED Ring- 24 LED beads * 1

Software Preparation

Click the extensions in MakeCode and add the neopixel library into the extensions.

Other Preparation Work

Wiring Diagram

Wiring Diagram

Sample Code

Sample Code

Result

Use the RGB LED ring to implement a 25-minute tomato timer with a buzzer that stops when button A is pressed.

Was this article helpful?

TOP