Any ideas why this compiler directive doesn’t seem to work:
http://pastebin.com/SyTqg7nv
Running Windows 8.1 and Arduino IDE 1.06. The WS2812B definition works, the APA102 definition works, but when I wrap them in compiler directives, it compiles and uploads, but I get no LED flashiness.
Try removing the reference to your LED_TYPE define from the template parameters in the call to LEDS.addLeds, and explicitly reference FastLED’s WS2812 or APA102 symbols. FastLED has its own definitions of those symbols, and passing something with a different value won’t work.
Unless both LED_TYPE and WS2812B equate to numbers or strings, then the comparison will always equate to false.
Because FastLED defines a class named WS2812B for the WS2812B controller.
Thanks all. I think I’ve got it, and will probably just leave well enough alone.