mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-04-23 22:21:29 +00:00
increase touch sensitivity a little more (#1140)
and make the code a little more descriptive :) Co-authored-by: Eisenberger Tamas <e.tamas@iwstudio.hu>
This commit is contained in:
parent
72f0a1be54
commit
d370dae170
@ -38,7 +38,11 @@ using sample_t = uint16_t;
|
|||||||
|
|
||||||
constexpr sample_t sample_max = 1023;
|
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 {
|
struct Samples {
|
||||||
sample_t xp;
|
sample_t xp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user