Thanks Daniel/JP - the voltage was fine as I suspected. Now it all works with the speed explicitly set to 6.
@Daniel_Garcia - the only issue for me now is that this set has a BGR colour order. I’ve tried “#define COLOR_ORDER BGR”, but it’s not recognised. Is there another way to set this correctly?
Well, this issue is above my pay grade. I would suggest post your entire sketch on gist and provide a link to it here also add all relevant info like controller used version of Arduino etc… etc…
Mark - at least post your addLeds line, if not your entire setup method - it’s kind of an important part of telling you why there are compilation errors. (Also, it is possible that if you are explicitly setting the data rate and the color order that you need to explicitly set the clock and data pin, even if using hardware SPI)
with these at the top: #define CLOCK_PIN 53 #define DATA_PIN 51 #define NUM_LEDS 324 #define CHIPSET APA102 #define COLOR_ORDER BGR #define CHIP_SPEED 6
Like I say, RGB and GBR works so it would be strange to me that the other settings affect it compiling. The FakeLEDs are for dummy non-existent lights that I use for visual echo effect type processing.
Thanks for any help! But if no joy, I’ll just swap R and B elsewhere…
Yeah - your fake leds are the problem - and it’s a quirk of math that some color orders work and some don’t. You need to define both a fake data pin and a fake clock pin for that.
Thanks… almost, but still doesn’t compile. Now it says that one of my IR codes is not declared in this scope! (also for RGB). Propbably easier to change the rest of my code and put it back to the way it was. Thanks anyway.