Greetings - only asking because time critical - built a great costume for the little guy but decided to give him 4 buttons to change the LED patterns. My question is what is the best (or any!) way to run a loop and wait for button inputs to change to the next one. I made it 4 buttons so that it looked "cooler" and each one is correctly attached to a pin waiting to be read.
I just don't know the best method for running the LED loops but still waiting for a button change to jump out and into another function. WHILE? BREAK? ahhhh Im such a perpetual noob!!
I wrote 3 simple LED function, one for each button. The fourth I want to control the LCD to change the message.