new platformio
This commit is contained in:
parent
96d599899e
commit
49ab5424ac
|
|
@ -37,10 +37,10 @@ lib_deps =
|
|||
adafruit/Adafruit BME680 Library@^2.0.4
|
||||
adafruit/Adafruit SH110X@^2.1.8
|
||||
|
||||
check_tool = cppcheck
|
||||
check_flags =
|
||||
cppcheck: --suppress=*:*.pio\* --inline-suppr -DCPPCHECK
|
||||
check_skip_packages = yes
|
||||
;check_tool = cppcheck
|
||||
;check_flags =
|
||||
; cppcheck: --suppress=*:*.pio\* --inline-suppr -DCPPCHECK
|
||||
;check_skip_packages = yes
|
||||
|
||||
|
||||
[esp32dev_base]
|
||||
|
|
@ -56,58 +56,118 @@ build_flags =
|
|||
|
||||
[env:ttgo-t-beam-v1_2]
|
||||
board = ttgo-t-beam
|
||||
build_flags = -Werror -Wall -DTTGO_T_Beam_V1_2
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DTTGO_T_Beam_V1_2
|
||||
-DHAS_SX127X
|
||||
-DHAS_AXP2101
|
||||
-DHAS_BUTTON
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ttgo-t-beam-v1]
|
||||
board = ttgo-t-beam
|
||||
build_flags = -Werror -Wall -DTTGO_T_Beam_V1_0
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DTTGO_T_Beam_V1_0
|
||||
-DHAS_SX127X
|
||||
-DHAS_AXP192
|
||||
-DHAS_BUTTON
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ttgo-t-lora32-v2_1_TNC]
|
||||
board = ttgo-lora32-v21
|
||||
build_flags = -Werror -Wall -DTTGO_T_LORA32_V2_1_TNC
|
||||
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DTTGO_T_LORA32_V2_1_TNC
|
||||
-DHAS_SX127X
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ttgo-t-lora32-v2_1_GPS]
|
||||
board = ttgo-lora32-v21
|
||||
build_flags = -Werror -Wall -DTTGO_T_LORA32_V2_1_GPS
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DTTGO_T_LORA32_V2_1_GPS
|
||||
-DHAS_SX127X
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ESP32_DIY_LoRa_GPS]
|
||||
board = esp32dev
|
||||
build_flags = -Werror -Wall -DESP32_DIY_LoRa_GPS
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DESP32_DIY_LoRa_GPS
|
||||
-DHAS_SX127X
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ESP32_DIY_1W_LoRa_GPS]
|
||||
board = esp32dev
|
||||
build_flags = -Werror -Wall -DESP32_DIY_1W_LoRa_GPS
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DESP32_DIY_1W_LoRa_GPS
|
||||
-DHAS_SX126X
|
||||
-DHAS_BUTTON
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ttgo-t-beam-v1_SX1268]
|
||||
board = ttgo-t-beam
|
||||
build_flags = -Werror -Wall -DTTGO_T_Beam_V1_0_SX1268
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DTTGO_T_Beam_V1_0_SX1268
|
||||
-DHAS_SX126X
|
||||
-DHAS_AXP192
|
||||
-DHAS_BUTTON
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ttgo-t-beam-v1_2_SX1262]
|
||||
board = ttgo-t-beam
|
||||
build_flags = -Werror -Wall -DTTGO_T_Beam_V1_2_SX1262
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DTTGO_T_Beam_V1_2_SX1262
|
||||
-DHAS_SX126X
|
||||
-DHAS_AXP2101
|
||||
-DHAS_BUTTON
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ttgo-t-beam-v0_7]
|
||||
board = ttgo-t-beam
|
||||
build_flags = -Werror -Wall -DTTGO_T_Beam_V0_7
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DTTGO_T_Beam_V0_7
|
||||
-DHAS_SX127X
|
||||
-DHAS_BUTTON
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:ttgo_t_beam_S3_SUPREME_V3]
|
||||
board = esp32-s3-devkitc-1
|
||||
build_flags = ${esp32s3_base.build_flags}
|
||||
build_flags =
|
||||
${esp32s3_base.build_flags}
|
||||
-DTTGO_T_Beam_S3_SUPREME_V3
|
||||
-DBOARD_HAS_PSRAM
|
||||
-DHAS_SX126X
|
||||
-DHAS_AXP2101
|
||||
-DHAS_BUTTON
|
||||
|
||||
[env:heltec_V3_GPS]
|
||||
board = heltec_wifi_lora_32_V3
|
||||
build_flags = -DHELTEC_V3_GPS
|
||||
board_build.mcu = esp32s3
|
||||
build_flags =
|
||||
-DHELTEC_V3_GPS
|
||||
-DHAS_SX126X
|
||||
-DHAS_BUTTON
|
||||
|
||||
[env:OE5HWN_MeshCom]
|
||||
board = esp32dev
|
||||
build_flags = -Werror -Wall -DOE5HWN_MeshCom
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DOE5HWN_MeshCom
|
||||
-DHAS_SX126X
|
||||
-DHAS_BUTTON
|
||||
-DHAS_BT_CLASSIC
|
||||
|
||||
[env:esp32_c3_DIY_LoRa_GPS]
|
||||
board = esp32-c3-devkitm-1
|
||||
build_flags = -Werror -Wall
|
||||
build_flags =
|
||||
-Werror -Wall
|
||||
-DESP32_C3_DIY_LoRa_GPS
|
||||
-DHAS_SX127X
|
||||
-DARDUINO_USB_MODE=1
|
||||
-DARDUINO_USB_CDC_ON_BOOT=1
|
||||
|
|
@ -6,31 +6,10 @@
|
|||
#undef OLED_RST
|
||||
|
||||
|
||||
#if defined(TTGO_T_Beam_V0_7) || defined(TTGO_T_Beam_V1_0) || defined(TTGO_T_Beam_V1_2) || defined(TTGO_T_Beam_V1_0_SX1268) || defined(ESP32_DIY_1W_LoRa_GPS) || defined(TTGO_T_Beam_V1_2_SX1262) || defined(TTGO_T_Beam_S3_SUPREME_V3) || defined(OE5HWN_MeshCom) || defined(HELTEC_V3_GPS)
|
||||
#define HAS_BUTTON
|
||||
#endif
|
||||
|
||||
#if defined(TTGO_T_Beam_V1_0_SX1268) || defined(ESP32_DIY_1W_LoRa_GPS) || defined(TTGO_T_Beam_V1_2_SX1262) || defined(TTGO_T_Beam_S3_SUPREME_V3) || defined(HELTEC_V3_GPS) || defined(OE5HWN_MeshCom)
|
||||
#define HAS_SX126X
|
||||
#endif
|
||||
|
||||
#if defined(TTGO_T_Beam_V0_7) || defined(TTGO_T_Beam_V1_0) || defined(TTGO_T_LORA32_V2_1_TNC) || defined(TTGO_T_Beam_V1_2) || defined(ESP32_DIY_LoRa_GPS) || defined(TTGO_T_LORA32_V2_1_GPS) || defined(ESP32_C3_DIY_LoRa_GPS)
|
||||
#define HAS_SX127X
|
||||
#endif
|
||||
|
||||
#if defined(TTGO_T_Beam_V1_0) || defined(TTGO_T_Beam_V1_0_SX1268)
|
||||
#define HAS_AXP192
|
||||
#endif
|
||||
|
||||
#if defined(TTGO_T_Beam_V1_2) || defined(TTGO_T_Beam_V1_2_SX1262) || defined(TTGO_T_Beam_S3_SUPREME_V3)
|
||||
#define HAS_AXP2101
|
||||
#endif
|
||||
|
||||
#if !defined(TTGO_T_Beam_S3_SUPREME_V3) && !defined(HELTEC_V3_GPS) && !defined(ESP32_C3_DIY_LoRa_GPS)
|
||||
#define OLED_SDA 21
|
||||
#define OLED_SCL 22
|
||||
#define OLED_RST 16
|
||||
#define HAS_BT_CLASSIC
|
||||
#endif
|
||||
|
||||
#if defined(TTGO_T_Beam_V1_0) || defined(TTGO_T_Beam_V1_2) || defined(TTGO_T_Beam_V1_0_SX1268) || defined(TTGO_T_Beam_V1_2_SX1262)
|
||||
|
|
@ -90,7 +69,7 @@
|
|||
#define BUTTON_PIN -1
|
||||
#endif
|
||||
|
||||
#if defined(TTGO_T_Beam_S3_SUPREME_V3)
|
||||
#ifdef TTGO_T_Beam_S3_SUPREME_V3
|
||||
#define OLED_SDA 17
|
||||
#define OLED_SCL 18
|
||||
#define OLED_RST 16
|
||||
|
|
@ -107,7 +86,7 @@
|
|||
#define RADIO_BUSY_PIN 4
|
||||
#endif
|
||||
|
||||
#if defined(HELTEC_V3_GPS)
|
||||
#ifdef HELTEC_V3_GPS
|
||||
#define OLED_SDA 17
|
||||
#define OLED_SCL 18
|
||||
#define OLED_RST 21
|
||||
|
|
@ -124,7 +103,7 @@
|
|||
#define BATTERY_PIN 1
|
||||
#endif
|
||||
|
||||
#if defined(OE5HWN_MeshCom)
|
||||
#ifdef OE5HWN_MeshCom
|
||||
#define GPS_RX 17
|
||||
#define GPS_TX 16
|
||||
#define BUTTON_PIN 12
|
||||
|
|
@ -139,7 +118,7 @@
|
|||
#define RADIO_TXEN 13
|
||||
#endif
|
||||
|
||||
#if defined(ESP32_C3_DIY_LoRa_GPS)
|
||||
#ifdef ESP32_C3_DIY_LoRa_GPS
|
||||
#define OLED_SDA 8
|
||||
#define OLED_SCL 9
|
||||
#define OLED_RST 10
|
||||
|
|
|
|||
Loading…
Reference in New Issue