Example Code for micro:bit-Makecode Tomato Timer

Last revision 2025/12/09

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 lamp strip library into the extensions.

Wiring Diagram

Other Preparation Work

Click the extensions in MakeCode and add the lamp strip library into the extensions.

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