Skip to content

Commit

Permalink
comment out PIN_POWER_EN1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Mar 14, 2024
1 parent 3f0c9a0 commit 8303a41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ void setup()
#if defined(TTGO_T_ECHO) && defined(PIN_POWER_EN)
pinMode(PIN_POWER_EN, OUTPUT);
digitalWrite(PIN_POWER_EN, HIGH);
digitalWrite(PIN_POWER_EN1, INPUT);
delay(200);
// digitalWrite(PIN_POWER_EN1, INPUT);
#endif

#if defined(LORA_TCXO_GPIO)
Expand Down
2 changes: 1 addition & 1 deletion src/sleep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void doDeepSleep(uint32_t msecToWake, bool skipPreflight = false)
#ifdef TTGO_T_ECHO
#ifdef PIN_POWER_EN
pinMode(PIN_POWER_EN, INPUT); // power off peripherals
pinMode(PIN_POWER_EN1, INPUT_PULLDOWN);
// pinMode(PIN_POWER_EN1, INPUT_PULLDOWN);
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion variants/t-echo/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ External serial flash WP25R1635FZUIL0

// Controls power for all peripherals (eink + GPS + LoRa + Sensor)
#define PIN_POWER_EN (0 + 12)
#define PIN_POWER_EN1 (0 + 13)
// #define PIN_POWER_EN1 (0 + 13)

#define USE_EINK

Expand Down

0 comments on commit 8303a41

Please sign in to comment.