Hello
Not sure if this is intended behaviour but it seems odd to me. I have some WS2812B neopixels connected to pin 8 on a teensy 3.2 - using the below code the pixels flash to full after pixels.begin() and until the code gets into loop() - it appears that pixels.clear() has no effect until the loop() is reached. Am I doing something wrong??
Thanks!
Richard
Not sure if this is intended behaviour but it seems odd to me. I have some WS2812B neopixels connected to pin 8 on a teensy 3.2 - using the below code the pixels flash to full after pixels.begin() and until the code gets into loop() - it appears that pixels.clear() has no effect until the loop() is reached. Am I doing something wrong??
Thanks!
Richard
Code:
#include <Adafruit_NeoPixel.h>
#define NEO_PIN 8
#define NUMPIXELS 108
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, NEO_PIN, NEO_GRB + NEO_KHZ800);
void setup() {
// put your setup code here, to run once:
//nothing much on
Serial.begin(9600);
Serial.println("hello");
delay(2000);
pixels.begin();
pixels.clear();
//loads of pixels on
delay(2000);
}
void loop() {
//pixels go out
pixels.clear();
pixels.show();
}