Skip to content

Commit

Permalink
added hysterisis to touch screen detection
Browse files Browse the repository at this point in the history
  • Loading branch information
barry-ha committed Dec 25, 2023
1 parent 6a9f72e commit 8f0e353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Touch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void mapTouchToScreen(TSPoint touch, Point *screen);
TouchScreen ts = TouchScreen(PIN_XP, PIN_YP, PIN_XM, PIN_YM, XP_XM_OHMS);

void initTouchScreen(void) {
ts.pressureThreshhold = 200;
ts.pressureThreshhold = START_TOUCH_PRESSURE;
}

// ============== touchscreen helpers ==========================
Expand Down

0 comments on commit 8f0e353

Please sign in to comment.