diff --git a/platformio.ini b/platformio.ini index a97bb57..4b33602 100644 --- a/platformio.ini +++ b/platformio.ini @@ -23,6 +23,10 @@ check_flags = cppcheck: --suppress=*:*.pio\* --inline-suppr -DCPPCHECK check_skip_packages = yes +[env:ttgo-t-beam-Supreme] +board = esp32-s3-devkitc-1 +build_flags = -Werror -Wall -DTTGO_T_Beam_Supreme + [env:ttgo-t-beam-AXP2101-v1_2] board = ttgo-t-beam build_flags = -Werror -Wall -DTTGO_T_Beam_V1_2 diff --git a/src/pins.h b/src/pins.h index 4835883..c85a8e0 100644 --- a/src/pins.h +++ b/src/pins.h @@ -1,6 +1,7 @@ #ifndef PINS_H_ #define PINS_H_ +/* #undef OLED_SDA #undef OLED_SCL #undef OLED_RST @@ -8,7 +9,7 @@ #define OLED_SDA 21 #define OLED_SCL 22 #define OLED_RST 16 - +*/ #define BUTTON_PIN 38 // The middle button GPIO on the T-Beam #ifdef TTGO_T_Beam_V0_7 @@ -21,4 +22,26 @@ #define GPS_TX 34 #endif +#ifdef TTGO_T_Beam_Supreme +#undef OLED_SDA +#undef OLED_SCL +#undef OLED_RST + +#define OLED_SDA 17 +#define OLED_SCL 18 +#define OLED_RST 16 + +#define GPS_RX 9 +#define GPS_TX 8 + +#define LORA_SCK 12 +#define LORA_MISO 13 +#define LORA_MOSI 11 +#define LORA_CS 10 +#define RADIO_DIO0_PIN -1 +#define LORA_RST 5 +#define LORA_IRQ 1 +#define RADIO_BUSY_PIN 4 +#endif + #endif