comparison Potentiometer.h @ 2:a5e06e87f081

adjustments
author ark
date 2017-01-29 13:59 +0100
parents c74204ea535c
children 8f15fb46a050
comparison
equal deleted inserted replaced
1:c74204ea535c 2:a5e06e87f081
44 */ 44 */
45 const unsigned long JITTER_THRESHOLD = 2; 45 const unsigned long JITTER_THRESHOLD = 2;
46 46
47 /** max samples for de-jittering. 47 /** max samples for de-jittering.
48 */ 48 */
49 const int MAX_SAMPLES = 30; 49 const int MAX_SAMPLES = 20;
50 50
51 private: 51 private:
52 byte pin; 52 byte pin;
53 float sum; 53 float sum;
54 float avg; 54 float avg;