feat(travelers): 矩阵按键映射改为 key3/7/11/15 方向键, P1.5 独立闪烁, 修复 cols 整数提升 bug

This commit is contained in:
2026-03-29 06:44:15 +08:00
parent 609bee3c9d
commit 6f51e8ff83
9 changed files with 131 additions and 54 deletions
@@ -1151,6 +1151,13 @@ void setup()
userConfig.longPress = INPUT_BROKER_SELECT;
userConfig.longPressTime = 500;
userConfig.longLongPress = INPUT_BROKER_SHUTDOWN;
#ifdef BUTTON_SINGLE_PRESS_EVENT
userConfig.singlePress = BUTTON_SINGLE_PRESS_EVENT;
#endif
#ifdef BUTTON_DISABLE_LONG_PRESS
userConfig.longPress = INPUT_BROKER_NONE;
userConfig.longLongPress = INPUT_BROKER_NONE;
#endif
UserButtonThread->initButton(userConfig);
} else {
ButtonConfig userConfigNoScreen;