> ## 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.

# LED Ring

> WS2812 NeoPixel Compatible LED Ring

WS2812 NeoPixel Compatible LED Ring.

## Pin names

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

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

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

<ParamField path="DOUT" type="pin">
  Data output (for chaining)
</ParamField>

## Attributes

<ParamField path="pixels" type="string" default="16">
  Number of LEDs in the ring
</ParamField>

### 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

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

* [wokwi-led-matrix](wokwi-led-matrix) - WS2812 NeoPixel Compatible LED Matrix
* [wokwi-led-strip](wokwi-led-strip) - WS2812 NeoPixel Compatible LED Strip

## Simulator examples

* [LED Ring Rainbow](https://wokwi.com/projects/437060805227413505)
* [LED Ring Animations](https://wokwi.com/projects/368816317759493121)
