Hi, I've just started playing with FastLED using PlatformIO.

Hi, I’ve just started playing with FastLED using PlatformIO. I’ve found that the Cyclon code works just fine when I use the arduino IDE, but when I use platformIO, I get severe glitching. Has anyone encountered this before?

You don’t mention anything about what hardware you’re using (either mcu or leds). I have not done any testing with using platformio to build/program.

It’s a teensy 3.1 and some apa102 strips. Are there maybe fiddly timing loops in the fast led code that could be different for different compilers and configurations?

Make sure you’ve only got one source file in the project folder. It will try to compile all of the sources together and it can merge them together into strange, strange things.

I’m not using arduino IDE, it’s just straight up C++

Not for the apa102 code there isn’t. Are you using the hardware or software spi outputs?

Also there have been some APA102 related fixes of late, especially around bit-bang’d output - make sure you have the most recent version of the library.

(And, for the moment, building/running with platform IO is completely unsupported/tested :slight_smile:

Ok, I’ll try to upgrade it. If it gets anywhere I’m happy to do a little writeup: I really dislike the arduino IDE, and platformIO seems like a great alternative

In the arduino IDE’s preferences I just select the “use an external editor” box and then do all of my actual edting/coding in Atom and just use arduino as an uploader/serial monitor.