Closed csaba911 closed 4 years ago
Hi @csaba911
Thanks for using the library, but you're either using the wrong library or post the issue in the wrong library.
This TimerInterrupt Library is designed only for certain supported Arduino boards in this list of Supported Arduino Boards.
For ESP32, you have to use this ISR_RPM_Measure example after installing this ESP32TimerInterrupt Library
Hi @csaba911
If you're using the correct ESP32TimerInterrupt Library, then please fix the typo in the ISR_RPM_Measure example as follows:
From
// Interval in microsecs
if (ITimer1.attachInterruptInterval(TIMER1_INTERVAL_MS, TimerHandler1))
Serial.println("Starting ITimer1 OK, millis() = " + String(millis()));
else
Serial.println("Can't set ITimer1. Select another freq., duration or timer");
To
// Interval in microsecs, must multiply 1000
if (ITimer1.attachInterruptInterval(TIMER1_INTERVAL_MS * 1000, TimerHandler1))
Serial.println("Starting ITimer1 OK, millis() = " + String(millis()));
else
Serial.println("Can't set ITimer1. Select another freq., duration or timer");
Hi @csaba911
Just fix the typo in the ISR_RPM_Measure example of ESP32TimerInterrupt Library.
Thanks,