Browse Source

t-beam supreme: enabled lora tx led

enabled lora tx led and verified it flashes with message transmit
pull/292/head
cod3doomy 1 year ago
parent
commit
7576d45a8d
  1. 6
      src/helpers/TBeamS3SupremeBoard.h
  2. 3
      variants/lilygo_tbeam_supreme_SX1262/platformio.ini

6
src/helpers/TBeamS3SupremeBoard.h

@ -36,7 +36,7 @@
#define P_GPS_RX 9 //GPS RX pin #define P_GPS_RX 9 //GPS RX pin
#define P_GPS_TX 8 //GPS TX pin #define P_GPS_TX 8 //GPS TX pin
#define P_GPS_WAKE 7 //GPS Wakeup pin #define P_GPS_WAKE 7 //GPS Wakeup pin
#define P_GPS_1PPS 6 //GPS 1PPS pin //#define P_GPS_1PPS 6 //GPS 1PPS pin - repurposed for lora tx led
#define GPS_BAUD_RATE 9600 #define GPS_BAUD_RATE 9600
//I2C Wire addresses //I2C Wire addresses
@ -59,6 +59,9 @@ public:
#endif #endif
bool power_init(); bool power_init();
void begin() { void begin() {
power_init();
ESP32Board::begin(); ESP32Board::begin();
esp_reset_reason_t reason = esp_reset_reason(); esp_reset_reason_t reason = esp_reset_reason();
@ -71,7 +74,6 @@ public:
rtc_gpio_hold_dis((gpio_num_t)P_LORA_NSS); rtc_gpio_hold_dis((gpio_num_t)P_LORA_NSS);
rtc_gpio_deinit((gpio_num_t)P_LORA_DIO_1); rtc_gpio_deinit((gpio_num_t)P_LORA_DIO_1);
} }
power_init();
} }
void enterDeepSleep(uint32_t secs, int pin_wake_btn = -1) { void enterDeepSleep(uint32_t secs, int pin_wake_btn = -1) {

3
variants/lilygo_tbeam_supreme_SX1262/platformio.ini

@ -5,12 +5,11 @@ build_flags =
${esp32_base.build_flags} ${esp32_base.build_flags}
-I variants/lilygo_tbeam_supreme_SX1262 -I variants/lilygo_tbeam_supreme_SX1262
-D LORA_TX_POWER=22 -D LORA_TX_POWER=22
-D P_LORA_TX_LED=6
-D RADIO_CLASS=CustomSX1262 -D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper -D WRAPPER_CLASS=CustomSX1262Wrapper
;-D DISPLAY_CLASS=SSD1306Display ;Needs to be modified for SH1106 ;-D DISPLAY_CLASS=SSD1306Display ;Needs to be modified for SH1106
-D SX126X_RX_BOOSTED_GAIN=1 -D SX126X_RX_BOOSTED_GAIN=1
-D HAS_PMU=1
-D HAS_GPS=1
build_src_filter = ${esp32_base.build_src_filter} build_src_filter = ${esp32_base.build_src_filter}
+<../variants/lilygo_tbeam_supreme_SX1262> +<../variants/lilygo_tbeam_supreme_SX1262>
board_build.partitions = min_spiffs.csv ; get around 4mb flash limit board_build.partitions = min_spiffs.csv ; get around 4mb flash limit

Loading…
Cancel
Save