//LED1 on - waiting for BTN1 press
led1.on();
while (!button1.isPressed()){/*wait for button1 to be pressed*/}
//when BTN1 press, ACTION1 happens (sequence of LEDs for example)
//ACTION!
led1.off();
//after ACTION1, LED2 on - waiting for BTN2 press
led2.on();
while (!button2.isPressed()){/*wait for button2 to be pressed*/}
//when BTN2 press, ACTION2 happens (sequence of LEDs for example)
//ACTION2!
Thank you - these two libraries have saved me some sanity.
I think I can get through the rest of the statements required for the interactivity myself, but may drop a few more questions here at a later point.
One more question - do you have some handy code as to how, when one is using the button library, the buttons can be debounced?