In this tutorial we will control the switching on of an RGB LED module via the two buttons A and B of the micro: bit card:
1- When button A is pressed, the LED lights up in red.
2- When button B is pressed, the LED lights up green.
3- When pressing the 2 buttons A and B at the same time, the LED lights up in Blue.
There are many mounting methods and here are some examples:
Here is the makecode program which allows you to control the switching on of RGB LED with the Micro:bit buttons.