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 1/2] 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 afb162cee..7b9abd2ac 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); From 629db8c71859101f5fc97ffebc5cff8111a348a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Wed, 27 Apr 2022 15:30:27 +0200 Subject: [PATCH 2/2] Fix build errors and add a bit of failsafe --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 7b9abd2ac..7328feb79 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -152,12 +152,11 @@ 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"); + + // 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); -#elif #endif #ifdef VEXT_ENABLE