FreqCountESP icon indicating copy to clipboard operation
FreqCountESP copied to clipboard

timerMs corrupts readings

Open davidllpz opened this issue 1 year ago • 4 comments

Reads 25MHz with timerMs = 1000 and 100. Other values corrupts the value of frequency.

#include "FreqCountESP.h" void setup() { int inputPin = 14; int timerMs = 100; FreqCountESP.begin(inputPin, timerMs); Serial.begin(115200); } void loop() { if (FreqCountESP.available()) { uint32_t frequency = FreqCountESP.read(); Serial.println(frequency); // Do something with the frequency... } }

davidllpz avatar Mar 03 '23 03:03 davidllpz