[SOLVED]: Error When Compiling Code (Works with Arduino IDE and CodeBender)

Hi all,

I have the following script which i am trying to get to work: http://pastebin.com/bMx3utad

The idea is for it to flash a NEOPIXEL in the Aurora colors, ultimately i plan to use IFTTT to watch the @Aurora_Alerts and when they tweet a KP index of 4 or over for the LED to flash.

I am able to compile the code in both the Arduino IDE and Codebender and get it to work with my Arduino Nano and Uno’s. However when I try to create a App using Particle build i get the following errors: http://pastebin.com/jMX5WM4A

Any help would be greatly appreciated!


That sounds like an occasion where the Wiring preprocessor got tripped up.

Try adding a blank line at the top of your code.

And if this doesn’t help, you might need to add this

#include "Particle.h"

// add forward declaractions/prototypes for your own functions (where needed)
1 Like

The version of FastLED in the community libraries includes a C++ namespace. Just insert this before your declaration for CRGBPalette16.

using namespace NSFastLED; 

Also, BLEND no longer is defined. I’d guess LINEARBLEND is what you want. With those two changes it compiled for me.

1 Like

That worked perfect! Thank you for your help!