> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/functional_module/rgb/strip.md).

# RGB LED Strip

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip1.png)

An RGB LED strip.

### Specifications

* Dimensions: 1000 x 10 x 2 mm
* Voltage: 5V
* Current: 1A
* Wattage: 0.3W
* No. of LEDs: 60

### Wiring Diagram

This product is recommended for use with Robotbit.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip2.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip3.png)

* Connect Red wire to 5V
* Connect White wire to GND
* Connect Green wire to Signal Pin

### MakeCode Coding Tutorial

#### Import Robotbit Extension: <https://github.com/KittenBot/pxt-robotbit>

#### Or search Robotbit in the search bar

[Importing Extensions Tutorial](/programming-platforms/makecode-tutorial/kittenbot-and-makecode.md)

#### Neopixel Coding Blocks

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip4.png)

### Neopixel Coding

#### Lighting Up a Single Colour

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip5.png)

[Sample Program](https://makecode.microbit.org/_d7zDwY5y2hcd)

#### Lighting Up a Rainbow Effect

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip6.png)

[Sample Program](https://makecode.microbit.org/_KzCiXvWoa0Jo)

#### Adjusting Brightness

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip7.png)

[Sample Program](https://makecode.microbit.org/_2J41HRa54XyU)

#### Controlling Individual LED

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip8.png)

[Sample Program](https://makecode.microbit.org/_7YTa05AFf55A)

```
Use the show block to update the effects.
```

#### LED Marquee

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip9.png)

[Sample Program](https://makecode.microbit.org/_HDFCiPMs2fsj)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip10.png)

[Sample Program](https://makecode.microbit.org/_2dcCTHCrm1k4)

```
For shift, the effect will end after the pixel moves past the end(60 LEDs).
For rotate, the pixel will restart at 0 after moving past the end(60 LEDs).
```

#### Lighting Up a Selection of LEDs

![.](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip11.png)

[Sample Program](https://makecode.microbit.org/_azhb2aX4UPhm)

#### Custom Colours

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/ledstrip12.png)

[Sample Program](https://makecode.microbit.org/_aYHK4Jax8h6x)

### Extension Version and Updates

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

[Makecode Extension Update](https://kittenbothk-eng.readthedocs.io/en/latest/Makecode/makecode_extensionUpdate.html)

### FAQ

Q: Why does the LED strip only lights up RED no matter what colour I chose? A: There is not enough power.

Solution: Switch on the power of the Robotbit or connect an external power supply or lower the brightness.

### Precautions

* Do not apply a voltage more than 5V.
* Connect an external power supply such as an USB power bank for extended periods of use.
* Lower the brightness when lighting up a large number of LEDs.
* This product is designed for users 14 years or older, please seek parental assistance for users under 14.
* Please refer to official product guidelines before using. Only connect wires according to the instructions.
* Do not place this product on top of metal or conductive surfaces when using to prevent short circuits.
* Do not use this product near water or wet areas to prevent short circuits.
* Do not touch exposed contacts or wires.
