fix heltec v3 screen not working

this gives the vext 3.3V LDO regulator some time to stablize power
This commit is contained in:
Markus 2025-09-16 16:44:38 +02:00 committed by Tom Fifield
parent 799cf0e8b3
commit c848bfd594
3 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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