Skip to content

Commit

Permalink
added but reboots
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Oct 28, 2024
1 parent 7995d23 commit db6292c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
13 changes: 13 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,19 @@ build_flags =
-DHAS_SX1268
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
${common.lib_deps}
${common.display_libs}

[env:ttgo_lora32_t3s3_v1_2_915]
board = esp32-s3-devkitc-1
board_build.mcu = esp32s3
build_flags =
${common.build_flags}
-DTTGO_T_LORA32_T3S3_V1_2_915
-DHAS_SX1262
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
lib_deps =
${common.lib_deps}
${common.display_libs}
18 changes: 18 additions & 0 deletions src/boards_pinout.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,22 @@ DIO0 26
REST 14
GND - */


#ifdef TTGO_T_LORA32_T3S3_V1_2_915
#define RADIO_SCLK_PIN 5 // SX1262 SCK
#define RADIO_MISO_PIN 3 // SX1262 MISO
#define RADIO_MOSI_PIN 6 // SX1262 MOSI
#define RADIO_CS_PIN 7 // SX1262 NSS
#define RADIO_RST_PIN 8 // SX1262 RST
#define RADIO_DIO1_PIN 33 // SX1262 DIO1
#define RADIO_BUSY_PIN 34 // SX1262 BUSY

#define OLED_SDA 18 //17?
#define OLED_SCL 17 //18?
#define OLED_RST -1

#define INTERNAL_LED_PIN 37 // Green Led
#define BATTERY_PIN 1
#endif

#endif
2 changes: 1 addition & 1 deletion src/power_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ namespace POWER_Utils {
Wire1.begin(BOARD_I2C_SDA, BOARD_I2C_SCL);
#endif

#if defined(HELTEC_V3) || defined(HELTEC_WS) || defined(LIGHTGATEWAY_1_0)
#if defined(HELTEC_V3) || defined(HELTEC_WS) || defined(LIGHTGATEWAY_1_0) || defined(TTGO_T_LORA32_T3S3_V1_2_915)
Wire.begin(OLED_SDA, OLED_SCL);
#endif

Expand Down

0 comments on commit db6292c

Please sign in to comment.