diff --git a/src/main.cpp b/src/main.cpp index 689e80e35..bf60978de 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -464,6 +464,10 @@ void setup() digitalWrite(VEXT_ENABLE, VEXT_ON_VALUE); // turn on the display power #endif +#if defined(VEXT_ENABLE_DELAY) + delay(VEXT_ENABLE_DELAY); // give the LDO some time to stabilize the power +#endif + #if defined(BIAS_T_ENABLE) pinMode(BIAS_T_ENABLE, OUTPUT); digitalWrite(BIAS_T_ENABLE, BIAS_T_VALUE); // turn on 5V for GPS Antenna diff --git a/src/sleep.cpp b/src/sleep.cpp index 756582c74..353a4c657 100644 --- a/src/sleep.cpp +++ b/src/sleep.cpp @@ -276,7 +276,7 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false, bool skipSaveN #endif #if defined(VEXT_ENABLE) - digitalWrite(VEXT_ENABLE, !VEXT_ON_VALUE); // turn on the display power + digitalWrite(VEXT_ENABLE, !VEXT_ON_VALUE); // turn off the display power #endif #ifdef ARCH_ESP32 diff --git a/variants/esp32s3/heltec_v3/variant.h b/variants/esp32s3/heltec_v3/variant.h index d760c3b7f..1ed62fdd5 100644 --- a/variants/esp32s3/heltec_v3/variant.h +++ b/variants/esp32s3/heltec_v3/variant.h @@ -10,7 +10,9 @@ #define I2C_SDA1 SDA #define I2C_SCL1 SCL -#define VEXT_ENABLE Vext // active low, powers the oled display and the lora antenna boost +#define VEXT_ENABLE Vext // active low, powers the oled display and the lora antenna boost +#define VEXT_ENABLE_DELAY 2 // the LDO needs some time to stabilize the power + #define BUTTON_PIN 0 #define ADC_CTRL 37