changeset 2:a5e06e87f081

adjustments
author ark
date 2017-01-29 13:59 +0100
parents c74204ea535c
children 8f15fb46a050
files Potentiometer.cpp Potentiometer.h
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Potentiometer.cpp	Wed Jan 25 23:01:54 2017 +0100
+++ b/Potentiometer.cpp	Sun Jan 29 13:59:46 2017 +0100
@@ -6,6 +6,7 @@
 
 #include "Potentiometer.h"
 
+
 /**
     see Potentiometer.h for description.
 */
@@ -47,7 +48,9 @@
     Serial.print(", num=");
     Serial.print(num);
     Serial.print(", avg=");
-    Serial.println(avg);
+    Serial.print(avg);
+    Serial.print(", v=");
+    Serial.print(value);
     Serial.print(", isStopped=");
     Serial.println(this->isStopped);
     #endif
--- a/Potentiometer.h	Wed Jan 25 23:01:54 2017 +0100
+++ b/Potentiometer.h	Sun Jan 29 13:59:46 2017 +0100
@@ -46,7 +46,7 @@
         
         /** max samples for de-jittering.
          */
-        const int MAX_SAMPLES = 30;
+        const int MAX_SAMPLES = 20;
 
     private: 
         byte pin;