Counts interrupt driven pulses (UP or DOWN) with min and max width
Fork of PulseCounter by
Revision 1:f068f31da101, committed 2016-06-10
- Comitter:
- Mehrad
- Date:
- Fri Jun 10 00:03:32 2016 +0000
- Parent:
- 0:d534558752b8
- Commit message:
- Initial commit
Changed in this revision
PulseCounter.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r d534558752b8 -r f068f31da101 PulseCounter.h --- 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)) {