diff Potentiometer.h @ 1:c74204ea535c

added isStopped
author ark
date 2017-01-25 23:01 +0100
parents 4c32c9d4b94f
children a5e06e87f081
line wrap: on
line diff
--- a/Potentiometer.h	Mon Jan 23 01:50:42 2017 +0100
+++ b/Potentiometer.h	Wed Jan 25 23:01:54 2017 +0100
@@ -11,6 +11,9 @@
     public: 
         // dejittered pot value
         int value;
+
+        // flag, if true the pot is not moving
+        bool isStopped;
         
         /**
             create an uninitialised Potentiometer.
@@ -19,7 +22,7 @@
         Potentiometer();
 
         /**
-            setup pod instance.
+            setup pot instance.
             @param {byte} pin   input pin
         */
         void setup(byte pin);