122 lines
2.8 KiB
INI
122 lines
2.8 KiB
INI
; PlatformIO Project Configuration File
|
|
;
|
|
; Build options: build flags, source filter
|
|
; Upload options: custom upload port, speed and extra flags
|
|
; Library options: dependencies, extra library storages
|
|
; Advanced options: extra scripting
|
|
;
|
|
; Please visit documentation for the other options and examples
|
|
; https://docs.platformio.org/page/projectconf.html
|
|
|
|
[env]
|
|
extra_scripts = pre:verify-configs.py, pre:build-hal.py
|
|
|
|
[common_env_data]
|
|
src_filter = +<*>, -<.git/>, -<.svn/>, -<platform/>
|
|
lib_ldf_mode = chain+
|
|
src_build_flags =
|
|
-DRENDERBUG_VERSION=3
|
|
-DRENDERBUG_LED_PIN=14
|
|
-DRENDERBUG_LED_PACKING=RGB
|
|
-DDEFAULT_PATTERN_INDEX=0
|
|
-fstack-protector
|
|
-Wall
|
|
lib_deps_external =
|
|
fastled/FastLED@^3.5.0
|
|
thijse/ArduinoLog@^1.1.0
|
|
bblanchon/ArduinoJson@^6.17.3
|
|
JsonStreamingParser
|
|
LittleFS
|
|
|
|
[config_u8display]
|
|
src_build_flags =
|
|
-DCONFIG_U8DISPLAY
|
|
lib_deps =
|
|
olikraus/U8g2@^2.34.15
|
|
src_filter = "+<platform/arduino/U8Display.cpp>"
|
|
|
|
[config_ota]
|
|
src_build_flags =
|
|
src_filter = "+<platform/arduino/OTA.cpp>"
|
|
lib_deps =
|
|
|
|
[config_nocolor]
|
|
src_build_flags =
|
|
-DCONFIG_NO_COLORDATA
|
|
|
|
[config_buttons]
|
|
src_build_flags =
|
|
-DCONFIG_BUTTONS
|
|
src_filter = "+<inputs/Buttons.cpp>"
|
|
|
|
[config_mpu5060]
|
|
src_build_flags =
|
|
-DCONFIG_MPU5060
|
|
src_filter = "+<inputs/MPU6050.cpp>"
|
|
|
|
[env:esp32]
|
|
extends = config_nocolor
|
|
board_build.filesystem = littlefs
|
|
platform = espressif32
|
|
board = featheresp32
|
|
framework = arduino
|
|
check_flags =
|
|
cppcheck: --inline-suppr --suppress=*:*/.pio/*
|
|
src_build_flags =
|
|
${common_env_data.src_build_flags}
|
|
${config_nocolor.src_build_flags}
|
|
-DBOARD_ESP32
|
|
-DCONFIG_THREADED_INPUTS
|
|
-DRENDERBUG_LED_PIN=14
|
|
lib_deps =
|
|
${common_env_data.lib_deps_external}
|
|
BluetoothSerial
|
|
knolleary/PubSubClient@^2.8.0
|
|
src_filter = "${common_env_data.src_filter}"
|
|
monitor_filters = esp32_exception_decoder
|
|
monitor_speed = 115200
|
|
upload_speed = 115200
|
|
|
|
[env:esp8266-12f]
|
|
extends = env:esp8266
|
|
board = esp12e
|
|
|
|
[env:arduino-uno]
|
|
platform = atmelavr
|
|
board = uno
|
|
framework = arduino
|
|
lib_deps =
|
|
${common_env_data.lib_deps_external}
|
|
|
|
[env:esp8266]
|
|
check_flags =
|
|
cppcheck: --inline-suppr --suppress=*:*/.pio/*
|
|
platform = espressif8266
|
|
board = huzzah
|
|
framework = arduino
|
|
board_build.filesystem = littlefs
|
|
monitor_filters = esp8266_exception_decoder
|
|
src_build_flags =
|
|
${common_env_data.src_build_flags}
|
|
-DCORE_DEBUG_LEVEL=5
|
|
lib_deps =
|
|
${common_env_data.lib_deps_external}
|
|
knolleary/PubSubClient@^2.8.0
|
|
arduino-libraries/NTPClient@^3.1.0
|
|
ESP8266WiFi
|
|
ESP8266mDNS
|
|
ArduinoOTA
|
|
src_filter = "${common_env_data.src_filter}"
|
|
|
|
[env:esp32_display]
|
|
extends = env:esp32, config_u8display
|
|
src_filter = "${env:esp32.src_filter} ${config_u8display.src_filter}"
|
|
build_type = debug
|
|
lib_deps =
|
|
${env:esp32.lib_deps}
|
|
${config_u8display.lib_deps}
|
|
src_build_flags =
|
|
${env:esp32.src_build_flags}
|
|
${config_u8display.src_build_flags}
|
|
-DRENDERBUG_LED_PIN=14
|