I have a problem I can't see to solve. I'm trying to program my Arduino, which I just got. I have read a lot of programming scenarios, but can't seem to find one that fits my problem.
I can get the LED to turn off and on like I want.
Assume a switch is pressed or even two wires to the LED are put together. Once the switch is pressed I'd like the LED to flash briefly, even though the LED has power to it. Is there a way to do this with Arduino code?
(1) Press switch (2) Flash LED briefly (3) Switch is still being pressed (4) LED remains off until switch is pressed again (5) loop through routine again.