[esp32] How to disable, reset and again enable timer
I am trying to disable and again enable timer on my ESP32 but I have a problem resetting or restarting it. I dont have right words for that, but basically need him to start counting from 0 again. In arduino it is TCNT1 register. I was trying timerRestart(timer) function but without success. Code below should print out 2 zeros but it prints 0 and 30 because counter inside timer do not resets . . .
more
|