Hi,
Just been given an arduino and have been starting to play around with the basics.
I am looking to make an overrun timer, which i'm sure is very simple, but i could do with being pointed in the right direction as the standard delay command delays the whole program
I need it so that when a switch is turned on (on pin 2 as an example), a light (led on pin 13 lights) turns on and when the switch is turned off, the led turns off after a pre-determined delay- possibly to be set by a pot but thats much later on yet!
whats the best solution? state change?
Thanks
George