]> git.tnoah.ca Git - lora-radio.git/commitdiff
add support for user button on rak wismesh pocket which uses RAK4630 internally
authorliamcottle <liam@liamcottle.com>
Sat, 5 Oct 2024 06:12:26 +0000 (19:12 +1300)
committerliamcottle <liam@liamcottle.com>
Sat, 5 Oct 2024 06:12:26 +0000 (19:12 +1300)
Boards.h
RNode_Firmware.ino

index ab97d62e1667276648393ff6b6ff2635fc1e8f17..81475a99e76391b42e88bce96e8e50aa6b7a1364 100644 (file)
--- a/Boards.h
+++ b/Boards.h
       #define HAS_TCXO true
       #define HAS_RF_SWITCH_RX_TX true
       #define HAS_BUSY true
+      #define HAS_INPUT true
       #define DIO2_AS_RF_SWITCH true
       #define CONFIG_UART_BUFFER_SIZE 6144
       #define CONFIG_QUEUE_SIZE 6144
       #define BLE_MANUFACTURER "RAK Wireless"
       #define BLE_MODEL "RAK4640"
 
+      const int pin_btn_usr1 = 9;
+
       // Following pins are for the sx1262
       const int pin_rxen = 37;
       const int pin_reset = 38;
index b91cb8a4d9fa116c108abdbaafe5537e7f45d730..80a007786b56e7a0aedb4edb04ec8205b1508f4d 100644 (file)
@@ -1389,7 +1389,7 @@ void sleep_now() {
 }
 
 void button_event(uint8_t event, unsigned long duration) {
-  #if MCU_VARIANT == MCU_ESP32
+  #if MCU_VARIANT == MCU_ESP32 || MCU_VARIANT == MCU_NRF52
     if (display_blanked) {
       display_unblank();
     } else {