I have got 2 strands of 50 pixel WS2811, firstly I found I was getting green when I had red in Vixen, but I found that issue and if you haven't found it here it is:
Code:
// Let the FastLED library know how many pixels we will be addressing
FastLED.addLeds<WS2811, DATA_PIN, GRB>(leds, num_leds);
// Loop through each of the pixels and read the values for each color
do {
while(!Serial.available());
leds[cnt].r = Serial.read();
while(!Serial.available());
leds[cnt].g = Serial.read();
while(!Serial.available());
leds[cnt++].b = Serial.read();
}
while(--num_leds);
// Tell the FastLED Library it is time to update the strip of pixels
FastLED.show();
// WOO HOO... We are all done and are ready to start over again!
}
}
FastLED.addLeds<WS2811, DATA_PIN, GRB>(leds, num_leds); need to be FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, num_leds); to avoid reversing Red and Green
The issue I can't figure out is how to get intensity to work, does anyone know this? I have noticed that the code is missing FastLed.SetBrightness(xxx); to be able to accomplish this but this means that some effects in Vixen don't work as intended. Anyone have code to take care of that?
Bookmarks