Micro:bit RGB LED

Vary the light intensity of an RGB LED with Micro:bit

Purpose of this tutorial:

In this tutorial we will automatically vary the light intensity of an RGB LED

Required components

  • board micro:bit led RGB
  • 3 Resistors of 22O Ω
  • micro:bit GPIO Expansion Board
  • Connecting wires



  • Pin Po from the Micro:bit board to pin (R) for the red color of the RGB LED module
  • Pin P1 from the Micro:bit board to pin (G) for the green color of the RGB LED module
  • Pin P2 from the Micro:bit board to pin (B) for the blue color of the RGB LED module
  • the GND pin of the micro:bit to pin (GND) board of the RGB LED module

The mounting methods are numerous and here are some examples:

Mounting (1)

Mounting (2)

Makecode program

Here is the makecode program that allows you to automatically vary the light intensity of RGB LEDs.

10 commentaires

Penny 03-10-2222

Please let me know if you're looking for a writer for your blog. You have some really good posts and I feel I would be a good asset. If you ever want to take some of the load off, I'd love to write some material for your blog in exchange for a link back to mine.

Lisa 26-08-2222

I pay a vjsit each dayy some web sites and information sites to read content, except this website offers feature based articles.

Georgina 26-08-2222

Woah! I'm really enjoying the template/theme of this blog. It's simple, yet effective. A lot of times it's tough to get that "perfect balance" between superb usability and visual appearance. I must say you've done a fantastic job wit this. Additionally, the blog loads super quick for me on Opera. Supetb Blog!

Corinne 24-08-2222

Excellent web site. A lot of useful information here. I'm sending it to several buddies ans additionally sbaring in delicious. And naturally, thank you on your effort!

Sherlyn 04-05-2222

Hey very nice web site!! Man .. Excellent .. Wonderful .. I will bookmark your site and take the feeds additionally? I'm satisfied to find a lot of helpful info right here in the submit, we'd like develop more techniques on this regard, thank you for sharing.

Meghan 09-04-2222

Thanks very interesting blog!

Celeste 24-03-2222

Incredible points. Sound arguments. Keep up the good work.

Jurgen 26-02-2222

Hi to every one, it's in fact a good for me to pay a quick visit this web site, it contains precious Information.

Marion 19-02-2222

I think the admin of this website is truly working hard for his site, because here every material is quality based material.

Carson 16-02-2222

A person necessarily lend a hand to make seriously articles I would state. That is the very first time I frequented your website page and so far? I surprised with the analysis you made to make this actual publish amazing. Fantastic process!

Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top