Go Down

Topic: FastLED and Button Library question (Read 3320 times) previous topic - next topic

Grumpy_Mike

Code: [Select]
//A was pressed so set a variable or do something
gCurrentPatternNumber = 0;
...
//B was pressed so set a variable or do something
gCurrentPatternNumber = 1;
...
//C was pressed so set a variable or do something
gCurrentPatternNumber = 2;
...
//C was pressed so set a variable or do something
gCurrentPatternNumber = 3;

And un comment out the
Code: [Select]

 gPatterns[gCurrentPatternNumber]();

sokbok

thanks grumpy mike. It works. Very happy and thankful.

Go Up