Counts interrupt driven pulses (UP or DOWN) with min and max width
Fork of PulseCounter by
Diff: PulseCounter.h
- Revision:
- 1:f068f31da101
- Parent:
- 0:d534558752b8
--- a/PulseCounter.h Sun Apr 17 17:41:12 2011 +0000 +++ b/PulseCounter.h Fri Jun 10 00:03:32 2016 +0000 @@ -72,11 +72,12 @@ _t.reset(); _t.start(); - +/* if (_useled3) led3=1; else led4=1; +*/ _f=true; // pulse is on } @@ -84,12 +85,13 @@ void endpulse() { _diff_stop=_t.read_ms(); _t.stop(); - + + /* if (_useled3) led3=0; else led4=0; - + */ if ((_diff_stop >= _minwidth) and (_diff_stop <= _maxwidth) and (_f)) {