Skip to content

Commit

Permalink
Update Touch.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer committed Mar 2, 2023
1 parent 996b486 commit df96536
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Extensions/Touch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

// See license in root directory.

// Define a default pressure threshold
#ifndef Z_THRESHOLD
#define Z_THRESHOLD 350 // Touch pressure threshold for validating touches
#endif

/***************************************************************************************
** Function name: begin_touch_read_write - was spi_begin_touch
** Description: Start transaction and select touch controller
Expand Down Expand Up @@ -161,7 +166,6 @@ uint8_t TFT_eSPI::validTouch(uint16_t *x, uint16_t *y, uint16_t threshold){
** Function name: getTouch
** Description: read callibrated position. Return false if not pressed.
***************************************************************************************/
#define Z_THRESHOLD 350 // Touch pressure threshold for validating touches
uint8_t TFT_eSPI::getTouch(uint16_t *x, uint16_t *y, uint16_t threshold){
uint16_t x_tmp, y_tmp;

Expand Down

0 comments on commit df96536

Please sign in to comment.