From 3eae317cdf1ba4174e742674773d03c2a094bec9 Mon Sep 17 00:00:00 2001 From: Am0g-us <134163259+Am0g-us@users.noreply.github.com> Date: Sun, 19 Oct 2025 01:30:57 +0000 Subject: [PATCH] Fix generic esp32 reset pin Fix for critical Issue: GPIO 36 on the ESP32 is an input-only pin (part of the ADC1 group along with GPIO 34, 35, and 39). This is a hardware limitation of the ESP32 microcontroller. These pins cannot be configured as outputs. This means the current pin assignment in the firmware will not work correctly for the reset functionality, as pinMode(_reset, OUTPUT) and digitalWrite(_reset, LOW/HIGH) calls will fail to actually drive the pin. The reset pin for a generic ESP32 board should be reassigned to a GPIO that supports output mode (any GPIO that is not 34, 35, 36, or 39). This appears to be a configuration error in the board definition that would prevent proper initialization of the SX1278 LoRa module on these board configurations. --- Boards.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Boards.h b/Boards.h index 74b96d7..95f896f 100644 --- a/Boards.h +++ b/Boards.h @@ -215,7 +215,7 @@ #define HAS_CONSOLE true #define HAS_EEPROM true const int pin_cs = 4; - const int pin_reset = 36; + const int pin_reset = 33; const int pin_dio = 39; const int pin_led_rx = 14; const int pin_led_tx = 32; @@ -256,7 +256,7 @@ #define HAS_CONSOLE true #define HAS_EEPROM true const int pin_cs = 4; - const int pin_reset = 36; + const int pin_reset = 33; const int pin_dio = 39; const int pin_led_rx = 14; const int pin_led_tx = 32;