aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/Cst816s.cpp
diff options
context:
space:
mode:
authormark9064 <30447455+mark9064@users.noreply.github.com>2024-12-07 00:11:40 +0000
committermark9064 <30447455+mark9064@users.noreply.github.com>2025-10-14 21:20:55 +0100
commit8a60a2147cb6cc77a811ff40ab24a7880cfc5d6b (patch)
treec5cbdf5d35b43277e975ea1804925bbbf62df8b0 /src/drivers/Cst816s.cpp
parent8422923ea0ade3d822eaa40685ad5c465a630bf9 (diff)
Disable touch panel auto-reset
Diffstat (limited to 'src/drivers/Cst816s.cpp')
-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;
}