Updated NeoPixelBus object (markdown)

Michael Miller
2023-07-05 10:38:52 -07:00
parent c43b02c749
commit 662c890c0e

@@ -4,16 +4,16 @@ This is the primary object that is used to set colors on the pixels. When constr
```
NeoPixelBus<FEATURE, METHOD> strip(pixelCount, pixelPin);
```
Below is an example to create one for most platforms. It will manage 16 pixels on pin 2. The pixels use the most common bus speed of 800Kbps, and the most common color order of Green, Red, and then Blue.
Below is an example to create one for most platforms. It will manage 16 pixels on pin 2. The pixels use the most common WS2812x protocol, and the most common color order of Green, Red, and then Blue.
```
NeoPixelBus<NeoGrbFeature, Neo800KbpsMethod> strip(16, 2);
NeoPixelBus<NeoGrbFeature, NeoWs2812xMethod> strip(16, 2);
```
For the Esp8266 platforms, you can omit the pin argument as it is ignored. This is due to hardware support that doesn't allow for selecting a pin.
```
NeoPixelBus<NeoGrbFeature, Neo800KbpsMethod> strip(16);
NeoPixelBus<NeoGrbFeature, NeoWs2812xMethod> strip(16);
```
If you want to drive DotStars instead, use the following to create a bus that uses hardware SPI.
If you want to drive DotStars (two wire) instead, use the following to create a bus that uses hardware SPI.
```
NeoPixelBus<DotStarBgrFeature, DotStarSpiMethod> strip(32);
```