From d370dae170cc51033c4e0aa7b3c7ff2698dec5ce Mon Sep 17 00:00:00 2001 From: "E.T" Date: Fri, 9 Jun 2023 23:45:26 +0200 Subject: [PATCH] increase touch sensitivity a little more (#1140) and make the code a little more descriptive :) Co-authored-by: Eisenberger Tamas --- firmware/application/touch.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/application/touch.hpp b/firmware/application/touch.hpp index eecc6187..2594d40a 100644 --- a/firmware/application/touch.hpp +++ b/firmware/application/touch.hpp @@ -38,7 +38,11 @@ using sample_t = uint16_t; constexpr sample_t sample_max = 1023; -constexpr sample_t touch_threshold = sample_max / 16; +// If you have a dead bottom-left corner try to increase the sensitivity, +// but look for flickering touch indicator in the Buttons test screen +// in which case decrease sensitivity to avoid killing backlight timeout +constexpr sample_t touch_sensitivity = 32; +constexpr sample_t touch_threshold = sample_max / touch_sensitivity; struct Samples { sample_t xp;