make more sensitirve
This commit is contained in:
parent
b5a00b9926
commit
5e3ffbc1a0
|
@ -5,7 +5,7 @@ byte touchOut=0; //binary encoded sensors
|
|||
uint16_t rawIn[INPUTS];
|
||||
|
||||
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.
|
||||
// Inputdelay is given by: COUNTEDLOWTHRESHOLD*ADCREADINTERVAL
|
||||
|
||||
|
|
Loading…
Reference in New Issue