# HG changeset patch # User ark # Date 1485694786 -3600 # Node ID a5e06e87f081b44e7c300afa6161b1cbf81d0063 # Parent c74204ea535c613fbb7c9b626cb43a26607c5d06 adjustments diff -r c74204ea535c -r a5e06e87f081 Potentiometer.cpp --- 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 diff -r c74204ea535c -r a5e06e87f081 Potentiometer.h --- 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;