visualSound
Well-known member
When ever I run this code it sets the led's to full bright/white no matter what leds.setPixel() is doing. It only does this when the leds.show() function is called, and it only does so on the led's initialized by the library.
Any ideas? maybe a short? or perhaps something simple I'm overlooking?
Here's my code:
I've reduced it down as much as possible.
Any ideas? maybe a short? or perhaps something simple I'm overlooking?
Here's my code:
Code:
#include <OctoWS2811.h>
const int ledsPerStrip = 1;
DMAMEM int displayMemory[ledsPerStrip*6];
int drawingMemory[ledsPerStrip*6];
const int config = WS2811_GRB | WS2811_800kHz;
OctoWS2811 leds(ledsPerStrip, displayMemory, drawingMemory, config);
void setup() {
leds.begin();
//leds.show();
}
void loop() {
for(uint16_t i=0; i<leds.numPixels(); i++) {
leds.setPixel(i, 0,0,8);
delay(50);
}
leds.show();
delay(250);
}
I've reduced it down as much as possible.