pull/131/head
Peter Buchegger 2023-11-25 15:08:25 +01:00
rodzic c4e39cb214
commit a7ecf4dcae
2 zmienionych plików z 28 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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