aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Cst816s.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/Cst816s.cpp b/src/drivers/Cst816s.cpp
index 6abca66e..d993fb52 100644
--- a/src/drivers/Cst816s.cpp
+++ b/src/drivers/Cst816s.cpp
@@ -57,6 +57,10 @@ bool Cst816S::Init() {
static constexpr uint8_t irqCtl = 0b01110000;
twiMaster.Write(twiAddress, 0xFA, &irqCtl, 1);
+ // Disable auto-reset after 5s of no gesture
+ // The reset kills the current touch point, so paint/pong etc breaks
+ twiMaster.Write(twiAddress, 0xFB, 0, 1);
+
return true;
}