Where it would not recognize the LED ring as well as the neopixel library. This is a problem I did not have before when using RGB rings, but has recently come up.
Someone told me to try to download this library: https://github.com/adafruit/Adafruit_NeoPixel
But it did not work, as well as the fact that I already have the neopixel.h library, so I do not know why this happened.
One thing that jumps out is that it’s called strip and not ring in the code you show there
If you have the project in Web IDE it’s always best to post a SHARE THIS REVISION link. If you don’t want to disclose your own code to the public, you can PM me (or other Elites that may volunteer).
However, if you look at the sources of the neopixel library you will notice that the constants the compiler complains about actually aren’t declared.
If you want to use the more recent version of Adafruit_NeoPixel you may need to use that instead of the library provided by Web IDE or use FastLED
BTW, application.h is redundant and deprecated - Particle.h should be used in its place.
Also including neopixel.handneopixel/neopixel.h is also redundant.
I changed every ring to strip as well as copy pasted two small sections of the adafruit_neopixel library where NEO_RGW and NEO_KHZ800 are defined. Since I am using an RGBW ring not a strip, I was quite curious to know why this happened.
The problem I have now, is that the lights flash a different color than the one set in the code, as well as the fact that I cannot control them anymore using the switch and rotary encoder. Look at the code here: