FreqCountESP
FreqCountESP copied to clipboard
timerMs corrupts readings
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... } }