RGB LED strip / ring WS2812 with TinkerPie
NeoPixel strips and rings. Power long strips from a separate 5 V supply.
| Type | Displays and lights |
|---|---|
| Connect to | DIN on any accessory pin, 5 V + GND |
| Gives | up to 60 colour LEDs |
| Simulator | Yes: a control appears under the simulated board |
How to wire it
OLED and LCD go into a SENSOR port (I2C). The 4-digit display and LED strips use one or two signal pins.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
strip.begin(Pin.P10, 30)
strip.rainbow(0)
strip.setPixel(0, Colors.Red)
// Arduino C++
strip::begin(Pin::P10, 30)
strip::rainbow(0)
strip::setPixel(0, Colors::Red)