Merge pull request #1408 from Pedestrian11/patch-1

TTGO_T_ECHO to use batteries, PIN_EINK_PWR_ON must be set to high
This commit is contained in:
Thomas Göttgens 2022-04-27 15:45:01 +02:00 committed by GitHub
commit 2dbb9075a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,12 @@ void setup()
initDeepSleep();
// Testing this fix für erratic T-Echo boot behaviour
#if defined(TTGO_T_ECHO) && defined(PIN_EINK_PWR_ON)
pinMode(PIN_EINK_PWR_ON, OUTPUT);
digitalWrite(PIN_EINK_PWR_ON, HIGH);
#endif
#ifdef VEXT_ENABLE
pinMode(VEXT_ENABLE, OUTPUT);
digitalWrite(VEXT_ENABLE, 0); // turn on the display power