Skip to content

Commit 5136c8b

Browse files
lewisxhethebentern
andauthored
The T-Deck-Pro 4G version sets the modem to be disabled by default. (#7715)
Co-authored-by: Ben Meadors <[email protected]>
1 parent 8b42bf7 commit 5136c8b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/main.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,16 @@ void setup()
404404

405405
initDeepSleep();
406406

407+
#if defined(MODEM_POWER_EN)
408+
pinMode(MODEM_POWER_EN, OUTPUT);
409+
digitalWrite(MODEM_POWER_EN, LOW);
410+
#endif
411+
412+
#if defined(MODEM_PWRKEY)
413+
pinMode(MODEM_PWRKEY, OUTPUT);
414+
digitalWrite(MODEM_PWRKEY, LOW);
415+
#endif
416+
407417
#if defined(LORA_TCXO_GPIO)
408418
pinMode(LORA_TCXO_GPIO, OUTPUT);
409419
digitalWrite(LORA_TCXO_GPIO, HIGH);

variants/esp32s3/t-deck-pro/variant.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,12 @@
9292
#define SX126X_DIO3_TCXO_VOLTAGE 2.4
9393
// Internally the TTGO module hooks the SX1262-DIO2 in to control the TX/RX switch (which is the default for the sx1262interface
9494
// code)
95+
96+
#define MODEM_POWER_EN 41
97+
#define MODEM_PWRKEY 40
98+
#define MODEM_RST 9
99+
#define MODEM_RI 7
100+
#define MODEM_DTR 8
101+
#define MODEM_RX 10
102+
#define MODEM_TX 11
103+

0 commit comments

Comments
 (0)