Thinknode button and backlight fixes (#7641)

* Thinknode button and backlight fixes

* Save backlight value between reboots
This commit is contained in:
Jonathan Bennett
2025-08-15 14:41:21 -05:00
committed by GitHub
parent 8d5ae1d5d2
commit 4a241deb96
6 changed files with 31 additions and 19 deletions

View File

@@ -92,8 +92,11 @@ bool ButtonThread::initButton(const ButtonConfig &config)
if (config.shortLong != INPUT_BROKER_NONE) {
_shortLong = config.shortLong;
}
#ifdef USE_EINK
userButton.setDebounceMs(0);
#else
userButton.setDebounceMs(1);
#endif
userButton.setPressMs(_longPressTime);
if (screen) {