Skip to content

Commit 8a60a21

Browse files
committed
Disable touch panel auto-reset
1 parent 8422923 commit 8a60a21

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/drivers/Cst816s.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ bool Cst816S::Init() {
5757
static constexpr uint8_t irqCtl = 0b01110000;
5858
twiMaster.Write(twiAddress, 0xFA, &irqCtl, 1);
5959

60+
// Disable auto-reset after 5s of no gesture
61+
// The reset kills the current touch point, so paint/pong etc breaks
62+
twiMaster.Write(twiAddress, 0xFB, 0, 1);
63+
6064
return true;
6165
}
6266

0 commit comments

Comments
 (0)