Change default ISPRESSED threshold value

This commit is contained in:
prenticedavid
2017-12-15 16:00:20 +00:00
parent a15d94f4fb
commit c0d916dbe4

View File

@@ -51,7 +51,7 @@ bool ISPRESSED(void)
bool state, oldstate;
while (count < 10) {
readResistiveTouch();
state = tp.z > 20;
state = tp.z > 200; //ADJUST THIS VALUE TO SUIT YOUR SCREEN e.g. 20 ... 250
if (state == oldstate) count++;
else count = 0;
oldstate = state;