PaulStoffregen / FreqCount

Measures the frequency of a signal by counting the number of pulses during a fixed time.
http://www.pjrc.com/teensy/td_libs_FreqCount.html
145 stars 48 forks source link

Function to reset the gating interval #27

Open LightningStalker opened 2 years ago

LightningStalker commented 2 years ago

It would be handy if there was a function to reset the gating interval. It can be done currently by calling end and then begin but there is some redundant register initialization and other things that take place. My program counts pulses and there needs to be some blanking in the main loop to prevent false triggering.