Dependents:   Motorteststand

Revision:
2:a1fd290abd1a
Parent:
0:62ab475dd6f4
--- a/counter.h	Wed Dec 16 20:08:08 2015 +0000
+++ b/counter.h	Tue Mar 28 10:00:31 2017 +0000
@@ -7,11 +7,12 @@
      * @param pin is the MC pin for the Interrupt Input 
      */
     
-    Counter(PinName pin);
+    Counter(PinName pin, int count_per_round);
  
     /** Stores Counts per Second for last counting interval
      */
-    float cps;
+    float rps;
+    int no_count;
 
 
 private:
@@ -25,7 +26,7 @@
     Timer       _time;
     
     volatile int _count;
-    
+    volatile int _count_per_round;
     float _period;
     
 };
\ No newline at end of file