I am trying to use a neopixel light ring with my photon 2 and I can't get the posted example code to work. When I try to run it I get the below errors. I am using the neopixel 1.0.3 library and device version 5.8.0. I'm not sure what I could be doing wrong as I just copied the code from github, included the neopixel library, then tried to compile and I immediately got these errors. I appreciate the help!
I was able to build using neopixel library 1.0.4 for Device OS 5.8.0 on the P2/Photon 2.
I'm not sure what I am missing. I have included the neopixel library 1.0.4 for a device OS 5.8.0 like you said and the code won't compile. I am using the Web IDE, I have included the neopixel library and I just copied and pasted the rainbow code example and tried to compile it but I get the same errors as shown above. Am I missing a step somewhere?
Try opening this project:
https://go.particle.io/shared_apps/6613bc7f11d89a00093c6c22
Select your P2 device from the Devices menu (gold star to the left of the name) and target 5.8.0. That's how I tested it.
I still get the same errors trying to run that code too.
Should I be trying to flash the code even if it can't compile? That's the only thing I can think of that I haven't tried yet.
That same code complies if I choose one of my old photons running on version 2.3.1 but doesn't work with my photon 2 on version 5.8.0
Are you sure 5.8.0 is targeted? You need to click on the star, expand the device, and make sure that 5.6.0 or 5.8.0 is selected. That's the error you get if you target 3.2.1-p3.2, 5.0.0, 5.1.0, and other old versions. The target setting may be different than what's installed on the device.
Thanks for the help, I got it to work! I didn't know you could target a version to flash so that was on the wrong selection.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.