For my next question…
I am reading RGB values from a text file and want to set the pixels using those values.
Below is my code snippet…
My serial output shows
255
0
0
but my LEDs are flashing like crazy as if it is not using the 255,0,0 as RGB.
I’m wondering if I need to change the data type.
Thanks,
Phil
r = dataFile.read();
g = dataFile.read();
b = dataFile.read();
Serial.println®;
Serial.println(g);
Serial.println(b);
leds[i] = CRGB(r,g,b);
FastLED.show();
marmil
(Marc Miller)
2
Can you post all your code to http://gist.github.com ?
Just to confirm, if you fill the strip with fill_rainbow everything works correctly and no flashing? The hardware side is all sorted out now?
Ok… reading through other posts on this group, it seems like it is something to do with me using an Adafruit Feather m0 board to control them.
I knew the wiring was good because I had tested it but my test was using the Adafruit Dotstar Library.
I can’t get any FastLED sketch to successfully work on the Feather.
I’ll switch over to a Teesny and see how that goes.
Thanks.
Phil