Particle.io Photon and fastled.io  March 8th, 1016 FASTLED.

Particle.io Photon and http://fastled.io March 8th, 1016

FASTLED. V3.1.5

If I create a new app and past the DEMOREEL.INO into it, I get this error…

In file included from lamp.cpp:1:0:
FastLED/FastLED.h:12:2: warning: #warning FastLED version 3001000 (Not really a warning, just telling you here.) [-Wcpp]
#warning FastLED version 3001000 (Not really a warning, just telling you here.)
^
lamp.cpp:7:18: error: variable or field ‘addGlitter’ declared void
void addGlitter( fract8 chanceOfGlitter);
^

lamp.cpp:7:18: error: ‘fract8’ was not declared in this scope
lamp.cpp:7:18: note: suggested alternative:
In file included from FastLED/pixeltypes.h:5:0,
from FastLED/controller.h:5,
from FastLED/FastLED.h:37,
from lamp.cpp:1:
FastLED/lib8tion.h:318:19: note: ‘NSFastLED::fract8’
typedef uint8_t fract8; // ANSI: unsigned short _Fract
^
make[1]: […/build/target/user/platform-6lamp.o] Error 1
make:
[user] Error 2

Change fract8 to NSFastLED::fract8 (you need to do this because the particle ide is dumb)

Yea, the Arduino / Particle tools pretty much suck.

How can I tell exactly what version of FastLED I am running. It looks like fastled.h has a version number of 3001000, but that does not jive with what looks like current versions…

Thanks!!!

The particle version number is out of sync because of problems with the particle ide. (It is actually quite a bit behind what’s in FastLED’s main github repo)