(deleted)
Use the Arduino timers. millis() resolves to 1/1000 of a second, micros() to 4µs.
See the many examples in the Arduino IDE about handling time and buttons.
(deleted)
Use the Arduino timers. millis() resolves to 1/1000 of a second, micros() to 4µs.
See the many examples in the Arduino IDE about handling time and buttons.