Counts interrupt driven pulses (UP or DOWN) with min and max width

Fork of PulseCounter by Wim De Roeve

Files at this revision

API Documentation at this revision

Comitter:
Mehrad
Date:
Fri Jun 10 00:05:35 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
--- a/PulseCounter.h	Sun Apr 17 17:41:12 2011 +0000
+++ b/PulseCounter.h	Fri Jun 10 00:05:35 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)) {