PaulStoffregen / FreqMeasure

Measures the elapsed time during each cycle of an input frequency.
http://www.pjrc.com/teensy/td_libs_FreqMeasure.html
70 stars 31 forks source link

Enable custom overflow ignore setting. #5

Open Beanow opened 9 years ago

Beanow commented 9 years ago

I noticed the default values here caused false readings that were off by ~2^16 ticks on my ATmega328P-AU (5V/16Mhz). Tweaking this value to 0xC000 instead of 0xFF00 reduced them significantly for me. So I figured more people might need to tweak this setting. I've preserved your default values and added a setting for it.