Hello,
I am struggling with the FreqMeasure library.
My problem is that I need to detect a train of pulses.
With the FreqMeasure.available() I painfully realized that I am not able to use !FreqMeasure.available()
to signal an end of a pulse. The function toggles only once from FALSE
For example
if (FreqMeasure.available()) {
start clock;
}
if (!FreqMeasure.available()) {
stop clock;
}
My question is how to signal back that the incoming train stopped or how do I reset the (FreqMeasure.available()) ?
An ideal (wish list) would be to have FreqMeasure.timeout(t) that one can set the timeout period for the FreqMeasure.available() to toggle back to FALSE
Thank you
I am struggling with the FreqMeasure library.
My problem is that I need to detect a train of pulses.
With the FreqMeasure.available() I painfully realized that I am not able to use !FreqMeasure.available()
to signal an end of a pulse. The function toggles only once from FALSE
For example
if (FreqMeasure.available()) {
start clock;
}
if (!FreqMeasure.available()) {
stop clock;
}
My question is how to signal back that the incoming train stopped or how do I reset the (FreqMeasure.available()) ?
An ideal (wish list) would be to have FreqMeasure.timeout(t) that one can set the timeout period for the FreqMeasure.available() to toggle back to FALSE
Thank you