Hi everyone . I need some help in writing a Arduino code where I need a timer which starts from 1 to 30 seconds and after 30 seconds it should get stopped and when i start from first it should start newly. Can anyone help with the code i couldn't write and I'm stuck up badly.
Here's the sample which i have written
Start=milli();
End=milli();
End-Start = 30
F=1 (ENABLING FLAG)