make more sensitirve

This commit is contained in:
interfisch 2022-01-15 13:36:55 +01:00
parent b5a00b9926
commit 5e3ffbc1a0
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ byte touchOut=0; //binary encoded sensors
uint16_t rawIn[INPUTS]; uint16_t rawIn[INPUTS];
uint16_t countedLow[INPUTS]; //count the times input was below threshold (touched) uint16_t countedLow[INPUTS]; //count the times input was below threshold (touched)
#define TOUCHTHRESHOLD 700 //below which value input counts as touched. 0<x<1024 #define TOUCHTHRESHOLD 1000 //below which value input counts as touched. 0<x<1024
#define COUNTEDLOWTHRESHOLD 10 //how many times input has to be sampled as low in a row to count as real touch. #define COUNTEDLOWTHRESHOLD 10 //how many times input has to be sampled as low in a row to count as real touch.
// Inputdelay is given by: COUNTEDLOWTHRESHOLD*ADCREADINTERVAL // Inputdelay is given by: COUNTEDLOWTHRESHOLD*ADCREADINTERVAL