From 13fa7c1628043032b82b6cc952a0a80f84c3cf7b Mon Sep 17 00:00:00 2001 From: Pedestrian <70135709+Pedestrian11@users.noreply.github.com> Date: Tue, 26 Apr 2022 17:43:32 +0800 Subject: [PATCH] TTGO_T_ECHO to use batteries, PIN_EINK_PWR_ON must be set to high --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index afb162ce..7b9abd2a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);