I’ve been working with neopixel WS2812B strips on a Uno. something only just sample code, I would like to make one line like this " pixels.setPixelColor(PXL1[0], pixels.Color(0,0,139)); " not want many line for one pixel each, example 10 pixels together same time all on in one line, and other separate 10 pixels.
#include <Adafruit_NeoPixel.h>
const int PXL1[] = {0,1,2,3,4,5,6,7,8,9};
const int PXL2[] = {10,11,12,13,14,15,16,17,18,19};
#define PIN 3
#define NUMPIXELS 20
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
pixels.begin(); // This initializes the NeoPixel library.
}
void loop() {
pixels.setPixelColor(PXL1[0], pixels.Color(0,0,139));
pixels.show();
delay(200);
pixels.setPixelColor(PXL1[0], pixels.Color(0,0,0));
pixels.show();
delay(200);
pixels.setPixelColor(PXL2[0], pixels.Color(0,0,139));
pixels.show();
delay(200);
pixels.setPixelColor(PXL2[0], pixels.Color(0,0,0));
pixels.show();
delay(200);
}
something different with [0] for count add from 0,.....,9 only for Arrow, not together all on, how only one line is easy for example 10 pixels all on.