added PIN_USER_BTN_ANA for rak3401 companion usb and companion ble

This commit is contained in:
chrisdavis2110
2026-04-28 21:26:56 -07:00
parent 0396cf6771
commit 0265851621
2 changed files with 10 additions and 8 deletions

View File

@@ -741,7 +741,7 @@ void UITask::loop() {
#endif #endif
#if defined(PIN_USER_BTN_ANA) #if defined(PIN_USER_BTN_ANA)
if (abs(millis() - _analogue_pin_read_millis) > 10) { if (abs(millis() - _analogue_pin_read_millis) > 10) {
ev = analog_btn.check(); int ev = analog_btn.check();
if (ev == BUTTON_EVENT_CLICK) { if (ev == BUTTON_EVENT_CLICK) {
c = checkDisplayOn(KEY_NEXT); c = checkDisplayOn(KEY_NEXT);
} else if (ev == BUTTON_EVENT_LONG_PRESS) { } else if (ev == BUTTON_EVENT_LONG_PRESS) {

View File

@@ -64,6 +64,7 @@ board_upload.maximum_size = 712704
build_flags = build_flags =
${rak3401.build_flags} ${rak3401.build_flags}
-I examples/companion_radio/ui-new -I examples/companion_radio/ui-new
-D PIN_USER_BTN_ANA=31
-D DISPLAY_CLASS=SSD1306Display -D DISPLAY_CLASS=SSD1306Display
-D MAX_CONTACTS=350 -D MAX_CONTACTS=350
-D MAX_GROUP_CHANNELS=40 -D MAX_GROUP_CHANNELS=40
@@ -83,6 +84,7 @@ board_upload.maximum_size = 712704
build_flags = build_flags =
${rak3401.build_flags} ${rak3401.build_flags}
-I examples/companion_radio/ui-new -I examples/companion_radio/ui-new
-D PIN_USER_BTN_ANA=31
-D PIN_GPS_EN=-1 -D PIN_GPS_EN=-1
-D DISPLAY_CLASS=SSD1306Display -D DISPLAY_CLASS=SSD1306Display
-D MAX_CONTACTS=350 -D MAX_CONTACTS=350