Some APA102 strips require a lower data rate as the length of your strip gets longer (I’m not sure why this is - I have a board with 768 APA102 leds that I can run at full speed) - you can change the speed by changing your addLeds line to:
Ick, that’s too bad if you had to lower it all the way to 1Mhz. But great if you finally found something that made it stable!
You might experiment and put a 300 to 500 ohm resistor on the data line. Put it inline on the end of the data line just before the strip. (Do you think that might help here @Daniel_Garcia ? I’d love to find out why some setups play nice with higher data rates and others not so much.)
I did some more testing and found that I’m able to raise it up to a max of 4Mhz. Any higher and the end of the strip (say, ~20 or so leds. About a less than a meter it seems) goes haywire as mentioned above. It’s a bit interesting to see why that happens.
@marmil , I’m actually trying out resistors on the line tonight! I initially thought it was a power issue, so I tried there. I haven’t thought about putting them on the data line. I’ll try it out and get back to you!