Setup:
Arduino UNO
Button pin 6 (regular pushbutton)
LED1 pin 2
LED2 pin 4
What i want to happen:
When sketch starts, both LEDs are low.
When i push and hold button, LED1 turns on and stays on for 10 seconds (Even if i hold the button pressed for longer).
When i release the button, LED2 turns on and stays on for 10 seconds.
Now return to start and repeat.....
Any ideas for me how to do this?
Arduino UNO
Button pin 6 (regular pushbutton)
LED1 pin 2
LED2 pin 4
What i want to happen:
When sketch starts, both LEDs are low.
When i push and hold button, LED1 turns on and stays on for 10 seconds (Even if i hold the button pressed for longer).
When i release the button, LED2 turns on and stays on for 10 seconds.
Now return to start and repeat.....
Any ideas for me how to do this?