Hello. I am attempting to use FastLED and Button Master library (renamed Button) and

Hello.

I am attempting to use FastLED and Button Master library (renamed Button) and different then the Button library found in library manager to utilize 4 buttons to trigger different patterns. My code thus far:

At the bottom of the code I have populated some attempts (none are working) to get the strip to do something when a button is pressed, for example:
if(myButtonD.wasPressed()) {
leds[1].setRGB( 0, 255, 225);
FastLED.show();
delay(30);
//D was pressed so set a variable or do something
}

Any help appreciated at getting these 4 buttons working.

Un-comment line 63 and 71 and then try updating your button sections to something like this:

myButtonA.read();
if(myButtonA.wasPressed()) {
gCurrentPatternNumber = 0; //confetti_GB
}

myButtonB.read();
if(myButtonB.wasPressed()) {
gCurrentPatternNumber = 1; //sinelon_B
}

etc.

The gCurrentPatternNumber number comes from the order and position of patterns in line 63.

Also, avoid using delay() as it could cause the program to miss reading a button push.

Hey Marc,

Thanks for the response!

I was able to get it to work. I also had to uncomment line 62.
Thanks for all your help.

Alright, great to hear @Andy_Smith1 ​!