Thanks for answering.To be more specific,in the existing code if i push the button up then the led( or motor) turns on for 5 sec.If i push the same button again before the expire of 5 sec,it does not stop.So i want to have the posibility to stop it before the expire of 5 sec.What code should i include in this sketch?
I want either to wait until the 5 sec expire or to push the button again before the end of 5 sec (so the shouters stay in a specific point).
The code is not mine(i am not very good with coding), and i try to put the extra code which i want)