Hi, Can someone help me with some code? I’m currently using the ColorPalette example (http://pastebin.com/Kw4vDK62) however i’d like ot modify it so that i can output another seperate set of colors ona nother pin. Currently the ColorPallete outputs on pin 5. What do i need to do to have another ColorPallete (or someother LED code) output on pin 4? Also i’m using the button example (http://pastebin.com/neyzv6Hi) (and i’ve sucesfully wired it) and i’d like the button to change the collor pallete mode. I basically have to change the secondHand variable in the ColorPallete example with the button but i don’t know how. I know i have to change this part:
if (buttonState == HIGH) {
digitalWrite(ledPin, HIGH);
}
In the button example. Could someone please help me with this?
Look at the MultiArrays example in the FastLED libraries “Examples” folder. This explains how to set up different pins with different LED strips and different arrays so they can run different code. You can write a separate function for each array, say, ColorPalette_green() and ColorPalette_blue() and just use the array name you want in each one.
This is a pretty simple way to do it. I’m sure there is a much more elegant way that doesn’t double all your code, but this will work.
@Erin_St_Blaine Thanks for the help. I’m getting somewhere. I have LEDs running off two pins but the color palette is ridiculously slow, seems like its not getting the 100 updates per a second it needs.
Got it working, now i need to learn how to change variables with a button 
This might give you some ideas to experiment with.
http://www.cs.uregina.ca/Links/class-info/207/Lab3/
Thanks @marmil almost exactly what I needed. One of the things I need a button for is to control brightness.
How would you envision your button setup for controlling brightness?