Skip to content

Commit

Permalink
Merge pull request #299 from shorepine/makerfabs-gt911-200ms
Browse files Browse the repository at this point in the history
reset pin for 200ms
  • Loading branch information
bwhitman authored Aug 5, 2024
2 parents bf77f90 + ee5386d commit 7468123
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tulip/esp32s3/gt911_touchscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,17 @@ void run_gt911(void *param) {
uint16_t touch_y[3];
uint16_t touch_strength[3];
uint8_t touch_cnt = 0;
//#ifdef CHARLIN
fprintf(stderr, "Charlin mode: resetting touch i2c RST pin twice, will take 4 seconds...\n");

fprintf(stderr, "Resetting touch i2c RST pin twice\n");
set_pin(TOUCH_RST, 0);
delay_ms(1000);
delay_ms(200);
set_pin(TOUCH_RST, 1);
delay_ms(1000);
delay_ms(200);
set_pin(TOUCH_RST, 0);
delay_ms(1000);
delay_ms(200);
set_pin(TOUCH_RST, 1);
delay_ms(1000);
delay_ms(200);

//#endif
touch_init();
while (1) {
esp_lcd_touch_read_data(tp);
Expand Down

0 comments on commit 7468123

Please sign in to comment.