Skip to content

Commit

Permalink
Update TouchDrv GT911 sleep method
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Apr 5, 2024
1 parent bfbcc8e commit 71967b5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/TouchDrvGT911.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,15 @@ class TouchDrvGT911 :
}
// writeRegister(GT911_COMMAND, 0x05);
writeCommand(0x05);
if (__irq != SENSOR_PIN_NONE) {
this->setGpioLevel(__irq, INPUT);
}

/*
* Depending on the chip and platform, setting it to input after removing sleep will affect power consumption.
* The chip platform determines whether
*
* * */
// if (__irq != SENSOR_PIN_NONE) {
// this->setGpioLevel(__irq, INPUT);
// }
}


Expand Down

0 comments on commit 71967b5

Please sign in to comment.