Skip to content

Commit db6292c

Browse files
committed
added but reboots
1 parent 7995d23 commit db6292c

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

platformio.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,19 @@ build_flags =
466466
-DHAS_SX1268
467467
-DARDUINO_USB_MODE=1
468468
-DARDUINO_USB_CDC_ON_BOOT=1
469+
lib_deps =
470+
${common.lib_deps}
471+
${common.display_libs}
472+
473+
[env:ttgo_lora32_t3s3_v1_2_915]
474+
board = esp32-s3-devkitc-1
475+
board_build.mcu = esp32s3
476+
build_flags =
477+
${common.build_flags}
478+
-DTTGO_T_LORA32_T3S3_V1_2_915
479+
-DHAS_SX1262
480+
-DARDUINO_USB_MODE=1
481+
-DARDUINO_USB_CDC_ON_BOOT=1
469482
lib_deps =
470483
${common.lib_deps}
471484
${common.display_libs}

src/boards_pinout.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,22 @@ DIO0 26
310310
REST 14
311311
GND - */
312312

313+
314+
#ifdef TTGO_T_LORA32_T3S3_V1_2_915
315+
#define RADIO_SCLK_PIN 5 // SX1262 SCK
316+
#define RADIO_MISO_PIN 3 // SX1262 MISO
317+
#define RADIO_MOSI_PIN 6 // SX1262 MOSI
318+
#define RADIO_CS_PIN 7 // SX1262 NSS
319+
#define RADIO_RST_PIN 8 // SX1262 RST
320+
#define RADIO_DIO1_PIN 33 // SX1262 DIO1
321+
#define RADIO_BUSY_PIN 34 // SX1262 BUSY
322+
323+
#define OLED_SDA 18 //17?
324+
#define OLED_SCL 17 //18?
325+
#define OLED_RST -1
326+
327+
#define INTERNAL_LED_PIN 37 // Green Led
328+
#define BATTERY_PIN 1
329+
#endif
330+
313331
#endif

src/power_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ namespace POWER_Utils {
205205
Wire1.begin(BOARD_I2C_SDA, BOARD_I2C_SCL);
206206
#endif
207207

208-
#if defined(HELTEC_V3) || defined(HELTEC_WS) || defined(LIGHTGATEWAY_1_0)
208+
#if defined(HELTEC_V3) || defined(HELTEC_WS) || defined(LIGHTGATEWAY_1_0) || defined(TTGO_T_LORA32_T3S3_V1_2_915)
209209
Wire.begin(OLED_SDA, OLED_SCL);
210210
#endif
211211

0 commit comments

Comments
 (0)