File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 33
44
55void 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) {
You can’t perform that action at this time.
0 commit comments