Hello FastLED community,
I have run into a bit of a snag on an LED project, and was hoping that someone here would be able to assist me. I have a strand of 50 WS2801 LEDs attatched to an Adafruit Flora and I am coding on the 1.6.8 version of Arduino using the 3.0.3 build of FastLED.
Anyway, what I’m trying to do is to customize the Noise Plus Palette example and add a pushbutton switch that would cycle through preset speeds and color palettes. The noisepluspalette example works fine on it’s own. I have also loaded up the LED Glow Scarf code from Adafruit (https://learn.adafruit.com/animated-neopixel-gemma-glow-fur-scarf/the-code) which uses the FastLED library and a button to cycle through palette settings. That code also works fine on it’s own with my Flora, so I know I wired the button correctly.
I tried to isolate the segments of the Glow Scarf code that pertained to the button function so that I could paste them into the Noisepluspalette example code. I loaded the hybrid sketch onto my Flora and it sort of works. It executes the noise sketch with the rainbow colors palette, but it never changes palettes and pressing the button has no effect.
So in summary I’m wondering how to code for the button to switch palettes and speed and if I’m on the right track with any of my guesswork. Any and all assistance is greatly appreciated! Thanks for reading.
Code is here: http://pastebin.com/zJkiytT6