I'm currently working on a "scramble" (eg; Tokyo square) traffic light system and i was wondering if anyone has a few commands to lend. (Im fairly new to Arduino

). I was wondering if anyone had a command to execute the scramble when both button a, and button b, are pressed. I currently have each buttons assigned to different a task. I was also wondering if anyone can lend a command that waits to executes the "scramble" until the on-going task is complete.

And my final request is if anyone can lend a command that executes the "scramble" when both buttons, a and b, are pressed and cancels all on-going task(s). It would be much appreciated if you could help.
