Skip to content

Commit a0bf66f

Browse files
authored
Fix for display not coming on after poweron
1 parent 429f821 commit a0bf66f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

variants/thinknode_m2/ThinknodeM2Board.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33

44

55
void ThinknodeM2Board::begin() {
6+
pinMode(PIN_VEXT_EN, OUTPUT);
7+
digitalWrite(PIN_VEXT_EN, !PIN_VEXT_EN_ACTIVE); // force power cycle
8+
delay(20); // allow power rail to discharge
9+
digitalWrite(PIN_VEXT_EN, PIN_VEXT_EN_ACTIVE); // turn backlight back on
10+
delay(120); // give display time to bias on cold boot
611
ESP32Board::begin();
7-
pinMode(PIN_VEXT_EN, OUTPUT); // init display
8-
digitalWrite(PIN_VEXT_EN, PIN_VEXT_EN_ACTIVE); // pin needs to be high
9-
delay(10);
10-
digitalWrite(PIN_VEXT_EN, PIN_VEXT_EN_ACTIVE); // need to do this twice. do not know why..
11-
pinMode(PIN_STATUS_LED, OUTPUT); // init power led
12+
pinMode(PIN_STATUS_LED, OUTPUT); // init power led
1213
}
1314

1415
void ThinknodeM2Board::enterDeepSleep(uint32_t secs, int pin_wake_btn) {

0 commit comments

Comments
 (0)