diff --git a/platformio.ini b/platformio.ini index d6fd1a0..5b5c3cf 100644 --- a/platformio.ini +++ b/platformio.ini @@ -28,6 +28,29 @@ extra_scripts = debug_tool = esp-prog [common] +build_flags = + -Werror -Wall + -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 + -DRADIOLIB_EXCLUDE_CC1101=1 + -DRADIOLIB_EXCLUDE_NRF24=1 + -DRADIOLIB_EXCLUDE_RF69=1 + -DRADIOLIB_EXCLUDE_SX1231=1 + -DRADIOLIB_EXCLUDE_SX1233=1 + -DRADIOLIB_EXCLUDE_SI443X=1 + -DRADIOLIB_EXCLUDE_RFM2X=1 + -DRADIOLIB_EXCLUDE_AFSK=1 + -DRADIOLIB_EXCLUDE_BELL=1 + -DRADIOLIB_EXCLUDE_HELLSCHREIBER=1 + -DRADIOLIB_EXCLUDE_MORSE=1 + -DRADIOLIB_EXCLUDE_RTTY=1 + -DRADIOLIB_EXCLUDE_SSTV=1 + -DRADIOLIB_EXCLUDE_AX25=1 + -DRADIOLIB_EXCLUDE_DIRECT_RECEIVE=1 + -DRADIOLIB_EXCLUDE_BELL=1 + -DRADIOLIB_EXCLUDE_PAGER=1 + -DRADIOLIB_EXCLUDE_FSK4=1 + -DRADIOLIB_EXCLUDE_APRS=1 + -DRADIOLIB_EXCLUDE_LORAWAN=1 lib_deps = jgromes/RadioLib @ 6.6.0 mikalhart/TinyGPSPlus @ 1.0.3 @@ -41,79 +64,72 @@ lib_deps = mathieucarbou/ESPAsyncWebServer @ 3.2.3 mathieucarbou/AsyncTCP @ 3.2.5 arduino-libraries/NTPClient @ 3.2.1 +display_libs = + adafruit/Adafruit GFX Library @ 1.11.9 + adafruit/Adafruit SSD1306 @ 2.5.10 + [env:ttgo-lora32-v21] board = ttgo-lora32-v21 build_flags = - -Werror -Wall + ${common.build_flags} -DTTGO_T_LORA32_V2_1 -DHAS_SX1278 - -DHAS_ADC_CALIBRATION - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 + -DHAS_ADC_CALIBRATION lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:ttgo-lora32-v21_915] board = ttgo-lora32-v21 build_flags = - -Werror -Wall + ${common.build_flags} -DTTGO_T_LORA32_V2_1_915 -DHAS_SX1276 -DHAS_ADC_CALIBRATION - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:heltec-lora32-v2] board = ttgo-lora32-v21 build_flags = - -Werror -Wall + ${common.build_flags} -DHELTEC_V2 -DHAS_SX1278 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:heltec_wifi_lora_32_V3] board = heltec_wifi_lora_32_V3 board_build.mcu = esp32s3 build_flags = - -Werror -Wall + ${common.build_flags} -DHELTEC_V3 -DHAS_SX1262 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:heltec_wireless_stick] board = esp32-s3-devkitc-1 board_build.mcu = esp32s3 build_flags = - -Werror -Wall + ${common.build_flags} -DHELTEC_WS -DHAS_SX1262 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:heltec_wireless_stick_lite_v3] board = esp32-s3-devkitc-1 board_build.mcu = esp32s3 build_flags = - -Werror -Wall + ${common.build_flags} -DHELTEC_WSL_V3 -DHAS_SX1262 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} @@ -121,207 +137,178 @@ lib_deps = board = esp32-s3-devkitc-1 board_build.mcu = esp32s3 build_flags = - -Werror -Wall + ${common.build_flags} -DHELTEC_WSL_V3_DISPLAY -DHAS_SX1262 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} [env:ESP32_DIY_LoRa] board = esp32dev build_flags = - -Werror -Wall + ${common.build_flags} -DESP32_DIY_LoRa -DHAS_SX1278 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:ESP32_DIY_LoRa_915] board = esp32dev build_flags = - -Werror -Wall + ${common.build_flags} -DESP32_DIY_LoRa_915 -DHAS_SX1276 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:ESP32_DIY_1W_LoRa] board = esp32dev build_flags = - -Werror -Wall + ${common.build_flags} -DESP32_DIY_1W_LoRa -DHAS_SX1268 -DHAS_1W_LORA - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:ESP32_DIY_1W_LoRa_915] board = esp32dev build_flags = - -Werror -Wall + ${common.build_flags} -DESP32_DIY_1W_LoRa_915 -DHAS_SX1262 -DHAS_1W_LORA - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:ESP32_DIY_1W_LoRa_LLCC68] board = esp32dev build_flags = - -Werror -Wall + ${common.build_flags} -DESP32_DIY_1W_LoRa_LLCC68 -DHAS_LLCC68 -DHAS_1W_LORA - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:ESP32_DIY_1W_LoRa_Mesh_V1_2] board = esp32dev -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DESP32_DIY_1W_LoRa_Mesh_V1_2 -DHAS_SX1268 -DHAS_1W_LORA - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:ttgo-t-beam-v1_2] board = ttgo-t-beam -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DTTGO_T_Beam_V1_2 -DHAS_SX1278 -DHAS_AXP2101 -DHAS_GPS - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} lewisxhe/XPowersLib @ 0.2.4 [env:ttgo-t-beam-v1_2_915] board = ttgo-t-beam -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DTTGO_T_Beam_V1_2_915 -DHAS_SX1276 -DHAS_AXP2101 -DHAS_GPS - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} lewisxhe/XPowersLib @ 0.2.4 [env:ttgo-t-beam-v1] board = ttgo-t-beam -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DTTGO_T_Beam_V1_0 -DHAS_SX1278 -DHAS_AXP192 -DHAS_GPS - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} lewisxhe/XPowersLib @ 0.2.4 [env:ttgo-t-beam-v1_915] board = ttgo-t-beam -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DTTGO_T_Beam_V1_0_915 -DHAS_SX1276 -DHAS_AXP192 -DHAS_GPS - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} lewisxhe/XPowersLib @ 0.2.4 [env:ttgo-t-beam-v1_SX1268] board = ttgo-t-beam -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DTTGO_T_Beam_V1_0_SX1268 -DHAS_SX1268 -DHAS_AXP192 -DHAS_GPS - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} lewisxhe/XPowersLib @ 0.2.4 [env:ttgo-t-beam-v1_2_SX1262] board = ttgo-t-beam -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DTTGO_T_Beam_V1_2_SX1262 -DHAS_SX1262 -DHAS_AXP2101 -DHAS_GPS - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} lewisxhe/XPowersLib @ 0.2.4 [env:ESP32_DIY_LoRa_A7670] board = esp32dev -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DESP32_DIY_LoRa_A7670 -DHAS_SX1278 -DHAS_A7670 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} vshymanskyy/TinyGSM @ 0.12.0 vshymanskyy/StreamDebugger @ 1.0.1 [env:ESP32_DIY_LoRa_A7670_915] board = esp32dev build_flags = - -Werror -Wall + ${common.build_flags} -DESP32_DIY_LoRa_A7670_915 -DHAS_SX1276 -DHAS_A7670 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} vshymanskyy/TinyGSM @ 0.12.0 vshymanskyy/StreamDebugger @ 1.0.1 @@ -330,7 +317,7 @@ lib_deps = board = esp32-s3-devkitc-1 board_build.mcu = esp32s3 build_flags = - -Werror -Wall + ${common.build_flags} -DHELTEC_WIRELESS_TRACKER -DHAS_SX1262 -DHAS_GPS @@ -360,145 +347,125 @@ build_flags = -D USE_HSPI_PORT -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} bodmer/TFT_eSPI @ 2.5.43 [env:heltec_ht-ct62] board = heltec_wireless_stick_lite board_build.mcu = esp32c3 -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DHELTEC_HTCT62 -DHAS_SX1262 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:heltec_wireless_paper] board = esp32-s3-devkitc-1 board_build.mcu = esp32s3 build_flags = - -Werror -Wall + ${common.build_flags} -DHELTEC_WP -DHAS_SX1262 -DHAS_EPAPER - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} [env:OE5HWN_MeshCom] board = esp32dev -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DOE5HWN_MeshCom -DHAS_SX1268 -DHAS_1W_LORA - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:WEMOS-LOLIN32-OLED-DIY] board = lolin32 -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DWEMOS_LOLIN32_OLED_DIY_LoRa -DHAS_SX1278 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:WEMOS-D1-R32-RA02] board = wemos_d1_uno32 -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DWEMOS_D1_R32_RA02 -DHAS_SX1278 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:WEMOS_S2_MINI_DIY_LoRa] board = lolin_s2_mini -build_flags = - -Werror -Wall +build_flags = + ${common.build_flags} -DWEMOS_S2_MINI_DIY_LoRa -DHAS_SX1278 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:esp32c3_DIY_1W_LoRa] board = esp32-c3-devkitm-1 board_build.mcu = esp32c3 build_flags = - -Werror -Wall + ${common.build_flags} -DESP32C3_DIY_1W_LoRa -DHAS_SX1268 -DHAS_1W_LORA -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:esp32c3_DIY_1W_LoRa_915] board = esp32-c3-devkitm-1 board_build.mcu = esp32c3 build_flags = - -Werror -Wall + ${common.build_flags} -DESP32C3_DIY_1W_LoRa_915 -DHAS_SX1262 -DHAS_1W_LORA -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:ESP32_C3_OctopusLab_LoRa] board = esp32-c3-devkitm-1 board_build.mcu = esp32c3 build_flags = - -Werror -Wall + ${common.build_flags} -DESP32_C3_OctopusLab_LoRa -DHAS_SX1268 -DRADIO_HAS_XTAL -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 + ${common.display_libs} [env:QRPLabs_LightGateway_1_0] board = esp32-s3-devkitc-1 board_build.mcu = esp32s3 build_flags = - -Werror -Wall + ${common.build_flags} -DLIGHTGATEWAY_1_0 -DHAS_SX1268 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 - -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -lib_deps = +lib_deps = ${common.lib_deps} - adafruit/Adafruit GFX Library @ 1.11.9 - adafruit/Adafruit SSD1306 @ 2.5.10 \ No newline at end of file + ${common.display_libs} \ No newline at end of file