Currently My led turns on and off whenever I press Flash button -
Now I want to include timers--
Press button for seconds ... led turn on
Press button for 10 seconds .. led turn off.
Someone help me with sample inclusion of timers ?
Well, this you may find out studying the examples. The pattern is: on button press, start a timer, when the timer has finished, check if the button is still pressed and then act as you wish. Very simple. And it will be the best to find out by one self - the learning effect is way bigger.
i try this but timer dont restart ... it just keep going