]> git.tnoah.ca Git - lora-radio.git/commitdiff
Added input button and sleep config to T-Beam and Heltec v2 boards
authorMark Qvist <mark@unsigned.io>
Sat, 5 Oct 2024 20:20:34 +0000 (22:20 +0200)
committerMark Qvist <mark@unsigned.io>
Sat, 5 Oct 2024 20:20:34 +0000 (22:20 +0200)
Boards.h

index a13e3287ff19516741b3d276a1c4877ce75eae8d..bd91dd1dfdc348afc8db16a9f691461a0ab62aed 100644 (file)
--- a/Boards.h
+++ b/Boards.h
       #define I2C_SDA 21
       #define I2C_SCL 22
       #define PMU_IRQ 35
+
+      #define HAS_INPUT true
+      const int pin_btn_usr1 = 38;
+
       const int pin_cs = 18;
       const int pin_reset = 23;
       const int pin_led_rx = 2;
       #define HAS_BLUETOOTH true
       #define HAS_CONSOLE true
       #define HAS_EEPROM true
+      #define HAS_INPUT true
+      #define HAS_SLEEP true
+      #define PIN_WAKEUP GPIO_NUM_0
+      #define WAKEUP_LEVEL 0
+
+      const int pin_btn_usr1 = 0;
+
       const int pin_cs = 18;
       const int pin_reset = 14;
       const int pin_dio = 26;