Skip to main content
WS2812 NeoPixel Compatible LED Ring.

Pin names

GND
pin
Ground
VCC
pin
Positive voltage supply
DIN
pin
Data input signal
DOUT
pin
Data output (for chaining)

Attributes

pixels
string
default:"16"
Number of LEDs in the ring

Chaining

You can chain multiple rings by connecting the DOUT pin of one ring to the DIN pin of the next. All LEDs share the same data line and are addressed sequentially.

Arduino code example

#include <Adafruit_NeoPixel.h>

#define RING_PIN 2
#define NUM_PIXELS 16

Adafruit_NeoPixel ring(NUM_PIXELS, RING_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  ring.begin();
  for (int i = 0; i < NUM_PIXELS; i++) {
    ring.setPixelColor(i, ring.Color(0, 150, 0)); // Green
  }
  ring.show();
}

void loop() {
  delay(10);
}

See also

Simulator examples

Build docs developers (and LLMs) love