# Monk Makes RGB LED for micro:bit

**Type:** Product page · **SKU:** CE05791 · **Brand:** [Monk Makes](https://core-electronics.com.au/brands/monk-makes-australia)
**Page:** https://core-electronics.com.au/monk-makes-rgb-led-for-micro-bit.html ([markdown](https://core-electronics.com.au/monk-makes-rgb-led-for-micro-bit.html.md))

The Monk Makes RGB LED for micro:bit provides a colorful add-on to your micro:bit. Connect it up with alligator clips and then use the three outputs of your micro:bit to control the red, green and blue channels to mix up any color of light you want.

## Pricing

- **Price:** $6.90 (inc GST) — $6.27 AUD, exc GST
- **Quantity discounts:** 10+ $6.02 (exc GST) · 25+ $5.84 (exc GST)

## Availability & dispatch

- In stock, ships same business day if ordered before 2PM (Australia/Sydney).
- We can dispatch 29 today; more stock is typically available with a 7–14 day lead time.

## Description

The MonkMakes RGB LED for micro:bit provides a colourful add-on to your micro:bit. Connect it up with alligator clips and then use the three outputs of your micro:bit to control the red, green and blue channels to mix up any colour of light you want.

![Monk Makes RGB LED in use](https://core-electronics.com.au/media/wysiwyg/product_info/monkmakes-rgb-led-inuse-449x600.jpg)

### Features

- Works with both the [micro:bit V1](https://core-electronics.com.au/micro-bit-by-bbc.html) and [micro:bit V2](https://core-electronics.com.au/micro-bit-v2-australia.html)
- Easy to connect
- Powered directly from micro:bit pins
- Useful for teaching color mixing.
 
### Getting Started

**Connecting to your micro**:bit

Connect the RGB LED to the micro:bit as shown below. When attaching the alligator clips to the micro:bit, make sure that the clips are perpendicular to the board so that they are not touching any of the neighbouring connectors on the micro:bit edge connector.

![Monk Makes RGB LED wiring](https://core-electronics.com.au/media/wysiwyg/product_info/monk-makes-rgb-led-342x750.jpg)

### JavaScript Blocks Editor

**Traffic Signal Example**

[Click here](https://makecode.microbit.org/_CP1fvqCCR6CK) for the example below to open the code in the JavaScript Blocks Editor. Once its running on your micro:bit it will cycle through the colors of a traffic signal.

![Traffic Code for Monk Makes RGB LED](https://core-electronics.com.au/media/wysiwyg/product_info/traffic_code-480x375.jpg)

### MicroPython

**Traffic Signal Example**

Paste the following code into the Python window and then Download the file and copy it onto your micro:bit

from microbit import \*

def set\_rgb(red, green, blue):
pin0.write\_analog(red)
pin1.write\_analog(green)
pin2.write\_analog(blue)

while True:
set\_rgb(255, 0, 0)
sleep(4000)
set\_rgb(800, 100, 0)
sleep(1000)
set\_rgb(0, 1023, 0)
sleep(5000)
set\_rgb(800, 100, 0)
sleep(1000)

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/m/o/monk-makes-rgb-led_2.jpg)
