-->

RGB LED Unit (SK6812)

SKU:U003

Regular price $1.99
Standard Shipping Estimated Delivery Time: 7-20 days
Description

RGB is LED Unit include 3 individual LEDs. It is also one of the Unit from M5GO Kit. Each one can display anycolor based on RGB value. One feature of this Unit is extension, which means you can have mutiple of them wired together.

This is a very useful piece on STEM class, students can program it to realize some of cool applications, for example a traffic light.

Product Features

  • Program Platform: Arduino, UIFlow(Blockly, Python)
  • Two Lego-compatible holes

Kit includes

  • 1x RGB Unit
  • 1x Grove Cable
Learn

Example

1. Arduino IDE

The code below is incomplete. To get complete code, please click here.

/*
    Install the AdaFruit NeoPixel library first
 */
#include <Adafruit_NeoPixel.h>

#define RGB_PIN 26
#define NUMPIXELS   3

// new a object
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB+NEO_KHZ800);

int delayval = 150;// delay for half a second

// initialization
pixels.begin(); // This initializes the NeoPixel library.

// display rgb
pixels.setPixelColor(0, pixels.Color(100,0,0));//parameter = (rgb index, color)
pixels.setPixelColor(1, pixels.Color(0,100,0));
pixels.setPixelColor(2, pixels.Color(0,0,100));
pixels.show(); // This sends the updated pixel color to the hardware.

2. UIFlow

To get complete code, please click here.

More information

PinMap

M5Core(GROVE B) GPIO36 GPIO26 5V GND
RGB Unit / Signal Pin 5V GND

Customer Reviews

Based on 16 reviews
94%
(15)
6%
(1)
0%
(0)
0%
(0)
0%
(0)
J
J.D.B.

RGB LED Unit (SK6812)

P
P.G.

M5Stack RGB Unit with NeoPixel RGB LED (SK6812)

A
A.B.

M5Stack RGB Unit with NeoPixel RGB LED (SK6812)

M
M.L.

Compliant product, fast shipping.

C
C.B.

M5Stack RGB Unit with NeoPixel RGB LED (SK6812)

Click to edit the product in Ali Orders.
Note: only show for shop owner