> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/wokwi/wokwi-docs/llms.txt
> Use this file to discover all available pages before exploring further.

# NeoPixel LED

> WS2812 NeoPixel Compatible Addressable LED

WS2812 NeoPixel Compatible Addressable LED.

## Pin names

<ParamField path="VDD" type="pin">
  Positive voltage supply
</ParamField>

<ParamField path="DOUT" type="pin">
  Data output
</ParamField>

<ParamField path="VSS" type="pin">
  Ground
</ParamField>

<ParamField path="DIN" type="pin">
  Data input signal
</ParamField>

### 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](./wokwi-led-strip), [LED Ring](./wokwi-led-ring), or [LED Matrix](./wokwi-led-matrix) parts instead.

## Arduino code example

```cpp theme={null}
#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

* [NeoPixel Red-Yellow-Green](https://wokwi.com/projects/456120200854327297)
