TTGO_T_ECHO to use batteries, PIN_EINK_PWR_ON must be set to high

This commit is contained in:
Pedestrian 2022-04-26 17:43:32 +08:00 committed by GitHub
parent d640478289
commit 13fa7c1628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,13 @@ void setup()
DEBUG_MSG("\n\n//\\ E S H T /\\ S T / C\n\n");
initDeepSleep();
#if defined(TTGO_T_ECHO)
DEBUG_MSG("\n\nTTGO_T_ECHO PIN_EINK_PWR_ON\n\n");
pinMode(PIN_EINK_PWR_ON, OUTPUT);
digitalWrite(PIN_EINK_PWR_ON, HIGH);
#elif
#endif
#ifdef VEXT_ENABLE
pinMode(VEXT_ENABLE, OUTPUT);