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

> WS2812 NeoPixel Compatible LED Strip

WS2812 NeoPixel Compatible LED Strip.

## Pin names

<ParamField path="VDD" type="pin">
  Positive voltage supply (input side)
</ParamField>

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

<ParamField path="VSS" type="pin">
  Ground (input side)
</ParamField>

<ParamField path="VDD.2" type="pin">
  Positive voltage supply (output side)
</ParamField>

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

<ParamField path="VSS.2" type="pin">
  Ground (output side)
</ParamField>

## Attributes

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

<ParamField path="pixelShape" type="string" default="">
  Pixel rendering shape: "square", "circle", or "" (smooth rendering)
</ParamField>

<ParamField path="pixelSize" type="string" default="5050">
  LED package size: "5050", "3535", or "2020"
</ParamField>

### Chaining

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

### Pixel rendering

#### Shape

Set the `pixelShape` attribute to control how each LED is rendered:

* `""` (default) - Smooth rendering (one pixel per LED, scaled up)
* `"square"` - Square pixel rendering
* `"circle"` - Circular pixel rendering

#### Size

Set the `pixelSize` attribute to match real-world LED package dimensions:

| Value    | Package    | Pixel size |
| -------- | ---------- | ---------- |
| `"5050"` | 5×5 mm     | 23 px      |
| `"3535"` | 3.5×3.5 mm | 16 px      |
| `"2020"` | 2×2 mm     | 9 px       |

## Arduino code example

```cpp theme={null}
#include <Adafruit_NeoPixel.h>

#define STRIP_PIN 2
#define NUM_PIXELS 8

Adafruit_NeoPixel strip(NUM_PIXELS, STRIP_PIN, NEO_GRB + NEO_KHZ800);

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

void loop() {
  delay(10);
}
```

## See also

* [wokwi-led-matrix](wokwi-led-matrix) - WS2812 NeoPixel Compatible LED Matrix
* [wokwi-led-ring](wokwi-led-ring) - WS2812 NeoPixel Compatible LED Ring

## Simulator examples

* [NeoPixel LED Strip](https://wokwi.com/projects/456031300796110849)
