Priority sequence lights with Arduino Uno

Thread Starter

14Marsh

Joined May 19, 2021
1
I have 4 Buttons and 4 LEDs...

  1. Individual operation
    Push button1 pressed, LED 1 lights for 1 second then turns off.
    Push button2 pressed, LED 2 lights for 1 second then turns off.
    Push button3 pressed, LED 3 lights for 1 second then turns off.
    Push button4 pressed, LED 4 lights for 1 second then turns off.
  2. sequence operation
    When a push button is pressed after another one, the second LED must wait for the first to go off then it can light.
Like press Button1, Button2, Button3... LED1 light fist and when off LED2 light second and when off LED3 light and off and so on.

Please help me get it right...
Thanks in advance.
 
Top