mirror of
https://github.com/meshtastic/firmware.git
synced 2025-10-27 06:54:37 +00:00
fix heltec v3 screen not working
this gives the vext 3.3V LDO regulator some time to stablize power
This commit is contained in:
parent
799cf0e8b3
commit
c848bfd594
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user