Hey I'm currently working on a gift for my girlfriend and I'm using a

Hey

I’m currently working on a gift for my girlfriend and I’m using a ring of Neopixels in it. I wanted to have a rainbow animation similar to both of the rainbow examples in NeoPixel. Can anyone instruct me on how to create a rainbow function, or call one that may already exist inside of FastLED?

I’m using a Spark Photon and the library included in the Web IDE.

I’ve attached a link to the full code I’m currently running
http://pastebin.com/GPTUs5Yw

Looking forward to seeing pics/video of your creation!

FastLED has a built-in fill_rainbow function: Controlling leds · FastLED/FastLED Wiki · GitHub

Here’s a great demo/example:

Thanks Jason, I will look into it here in a little while. Seems like it should work just fine, but I’m currently getting a “could not compile” error with the Web IDE. Not a code error, but a server error I think.

I don’t think fastled supports the spark photon as of now. The spark core is supported.

It does, but not in the web IDE, you have to use Particle Dev: https://www.particle.io/dev and manually pull down this fork of the library: https://github.com/focalintent/FastLED-Sparkcore

More conversation here: https://github.com/FastLED/FastLED/issues/166#issuecomment-151327165

Within the WebIDE, I’ve compiled to my photon just fine without any special forking. Only certain things didn’t work, like flashing certain examples.