Skip to main content

wokwi-neopixel Reference

WS2812 NeoPixel Compatible Addressable LED.

Pin names

NameDescription
VDDPositive voltage supply
DOUTData output
VSSGround
DINData input signal

Chaining

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

For larger numbers of LEDs, consider using the LED Strip, LED Ring, or LED Matrix parts instead.

Arduino code example

#include <Adafruit_NeoPixel.h>

#define LED_PIN 6

Adafruit_NeoPixel pixel(1, LED_PIN, NEO_GRB + NEO_KHZ800);

void setup() {
pixel.begin();
pixel.setPixelColor(0, pixel.Color(150, 0, 0)); // Red
pixel.show();
}

void loop() {
delay(100);
}

Simulator examples