Open konahart opened 7 years ago
I have the same issue.
looks like anther variable conflict. Same thing here.
Can we get some resolution here?
Hello GreatHornedOwl, For right now, just set your System Firmware Target to no greater than 0.6.0 and #include "Particle.h". You can set this in the devices panel. Click on the ">" and you will see the System Firmware Target pull down.
Cheers,
Sturgeon637
Hi Sturgeon637,
That worked, thanks a million!
GreatHornedOwl
Workaround does the trick 👍 , any idea if this can be fixed in any future Particle library update?
When I get back to working on library stuff it will get fixed.
Found a quick fix for this by renaming those conflicting variables, mind if I do a PR for review? Tried different names for variable like adding additional LED suffix but compiler complained so just made RwReg -> Rwrg and RoReg -> RoRg so that is doesn't collide with Particle internals.
Based it off this fork as that makes it compatible with Particle V2 library as well which should make it as little work as possible to publish afterwards :)
https://github.com/ACamposPT/FastLED-Sparkcore
Tested in build particle environment with firmware 0.6.2 (using internal repo publish) and both the AtmoOrbs work fine after flashing.
Just committed if you want to take a peek:
https://github.com/RickDB/FastLED-Sparkcore/tree/fix_variable_conflicts
This was fixed in Particle Firmware 0.6.2 and was covered in the following thread. This issue can be closed.
https://community.particle.io/t/fastled-not-compiling-to-photon/30031/25
Including FastLED from Particle Build now produces an error that it previously did not: