Micro:bit LED RGB

Introduction

The Micro:bit board is a compact and powerful educational microcontroller designed to inspire creativity and programming learning in young people. Launched in 2015 by the BBC in the UK as part of the “Make It Digital” initiative, the Micro:bit has quickly become a popular tool worldwide for teaching programming and computer science.

The Micro:bit measures approximately 4 centimetres by 5 centimetres and is equipped with a variety of features that make it an ideal choice for programming beginners.

In this tutorial, we’ll look at how to connect an RGB LED to your Micro:Bit board, so you can vary the colors:

We use Tinkercad to simulate our circuit. To do this, we program in the form of a block.

This block allows us to turn the LED green by pressing the button on the Micro:Bit card:

Press button B on the Micro:Bit card, and the LED will light up yellow:

Press the A+B button on the Micro:Bit card, and the LED will light up red: