Browse Source
Fix for display not coming on after poweron
pull/1071/head
Tomas P
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
5 deletions
-
variants/thinknode_m2/ThinknodeM2Board.cpp
|
|
|
@ -3,12 +3,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
void ThinknodeM2Board::begin() { |
|
|
|
pinMode(PIN_VEXT_EN, OUTPUT); |
|
|
|
digitalWrite(PIN_VEXT_EN, !PIN_VEXT_EN_ACTIVE); // force power cycle
|
|
|
|
delay(20); // allow power rail to discharge
|
|
|
|
digitalWrite(PIN_VEXT_EN, PIN_VEXT_EN_ACTIVE); // turn backlight back on
|
|
|
|
delay(120); // give display time to bias on cold boot
|
|
|
|
ESP32Board::begin(); |
|
|
|
pinMode(PIN_VEXT_EN, OUTPUT); // init display
|
|
|
|
digitalWrite(PIN_VEXT_EN, PIN_VEXT_EN_ACTIVE); // pin needs to be high
|
|
|
|
delay(10); |
|
|
|
digitalWrite(PIN_VEXT_EN, PIN_VEXT_EN_ACTIVE); // need to do this twice. do not know why..
|
|
|
|
pinMode(PIN_STATUS_LED, OUTPUT); // init power led
|
|
|
|
pinMode(PIN_STATUS_LED, OUTPUT); // init power led
|
|
|
|
} |
|
|
|
|
|
|
|
void ThinknodeM2Board::enterDeepSleep(uint32_t secs, int pin_wake_btn) { |
|
|
|
|