Hey everyone,
I am trying to implement the Lixie library located here:
I am using build.particle.io, and added the FastLED and Arduino libraries as they are required looking at the Lixie source. I then created new .cpp and .h files with the plus in the upper right corner, and pasted the contents of the Lixie.cpp and Lixie.h files into them, making sure the filenames were updated as well.
I implemented the example code from the getting started guide, and went to compile.
I ran into some compilation issues, but this forum thread helped me out. FastLED not compiling to Photon. I added FASTLED_USING_NAMESPACE after the include and the vast majority of compilation errors went away.
However, I still get the following error when trying to compile:
src/Lixie.cpp: In member function 'void Lixie::max_power(byte, uint16_t)':
src/Lixie.cpp:787:10: error: 'class NSFastLED::CFastLED' has no member named
'setMaxPowerInVoltsAndMilliamps'
FastLED.setMaxPowerInVoltsAndMilliamps(volts,milliamps);
^
../build/module.mk:261: recipe for target '../build/target/user/platform-6-msrc/Lixie.o' failed
make[2]: *** [../build/target/user/platform-6-msrc/Lixie.o] Error 1
make[2]: Leaving directory '/firmware/user'
../../../build/recurse.mk:11: recipe for target 'user' failed
make[1]: *** [user] Error 2
make[1]: Leaving directory '/firmware/modules/photon/user-part'
../build/recurse.mk:11: recipe for target 'modules/photon/user-part' failed
make: *** [modules/photon/user-part] Error 2
The Lixie library indicates that it needs FastLED version 3.0.0 or higher, and as far as I can tell the one I included is 3.1.5
I tried just commenting out all references to max_power, as was able to get it to compile, however when I flash my Photon it goes into SOS mode and indicates a hard fault
Perhaps there are some differences between the official FastLED source and the Photon library, in order to get it working with the Photon? Does anyone know a way around this if that’s the case?
It looks like I’m not the only one interested in getting this library working for the Photon: Lixie driver library import
Thanks in advance for any and all help!
Legomaniac