2021-03-29 08:10:55 +00:00
|
|
|
; 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
|
|
|
|
|
2021-03-31 18:50:00 +00:00
|
|
|
[common_env_data]
|
2023-02-19 17:47:48 +00:00
|
|
|
src_filter = "+<*> -<.git/> -<.svn/> -<platform/> -<inputs/> +<inputs/BPM.cpp>"
|
2022-06-11 09:02:27 +00:00
|
|
|
lib_ldf_mode = chain+
|
2023-02-18 16:47:25 +00:00
|
|
|
extra_scripts = verify-configs.py
|
2022-06-11 09:02:27 +00:00
|
|
|
src_build_flags =
|
|
|
|
-DRENDERBUG_VERSION=3
|
|
|
|
-DRENDERBUG_LED_PIN=14
|
|
|
|
-DRENDERBUG_LED_PACKING=RGB
|
|
|
|
-DDEFAULT_PATTERN_INDEX=0
|
2023-03-03 17:21:19 +00:00
|
|
|
-Wall
|
2022-06-11 09:02:27 +00:00
|
|
|
lib_deps_external =
|
2023-03-03 17:04:04 +00:00
|
|
|
fastled/FastLED@^3.5.0
|
|
|
|
thijse/ArduinoLog@^1.1.0
|
2022-06-11 09:02:27 +00:00
|
|
|
bblanchon/ArduinoJson@^6.17.3
|
2023-02-18 14:34:28 +00:00
|
|
|
LittleFS
|
2022-06-11 09:02:27 +00:00
|
|
|
|
|
|
|
[config_u8display]
|
|
|
|
src_build_flags =
|
|
|
|
-DCONFIG_U8DISPLAY
|
|
|
|
lib_deps =
|
2023-03-03 17:04:04 +00:00
|
|
|
olikraus/U8g2@^2.34.15
|
2022-06-11 09:02:27 +00:00
|
|
|
src_filter = "+<platform/arduino/U8Display.cpp>"
|
|
|
|
|
|
|
|
[config_mqtt]
|
|
|
|
src_build_flags =
|
|
|
|
-DCONFIG_MQTT
|
|
|
|
lib_deps =
|
|
|
|
knolleary/PubSubClient@^2.8.0
|
|
|
|
src_filter = "+<platform/arduino/MQTTTelemetry.cpp>"
|
|
|
|
|
|
|
|
[config_wifi]
|
|
|
|
src_build_flags =
|
|
|
|
-DCONFIG_WIFI
|
|
|
|
src_filter = "+<platform/arduino/WiFiTask.cpp>"
|
|
|
|
|
|
|
|
[config_bluetooth]
|
|
|
|
src_build_flags =
|
|
|
|
-DCONFIG_BLUETOOTH
|
|
|
|
src_filter = "+<platform/arduino/BluetoothSerialTelemetry.cpp>"
|
|
|
|
lib_deps =
|
|
|
|
BluetoothSerial
|
|
|
|
|
|
|
|
[config_ota]
|
|
|
|
src_build_flags =
|
|
|
|
-DCONFIG_OTA
|
|
|
|
src_filter = "+<platform/arduino/OTA.cpp>"
|
|
|
|
lib_deps =
|
|
|
|
ArduinoOTA
|
|
|
|
ESP8266mDNS
|
|
|
|
|
|
|
|
[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:bike]
|
|
|
|
extends = env:esp32, config_u8display
|
|
|
|
src_filter = "${env:esp32.src_filter} ${config_u8display.src_filter}"
|
|
|
|
lib_deps =
|
|
|
|
${env:esp32.lib_deps}
|
|
|
|
${config_u8display.lib_deps}
|
|
|
|
src_build_flags =
|
|
|
|
${env:esp32.src_build_flags}
|
|
|
|
${config_u8display.src_build_flags}
|
|
|
|
build_type = debug
|
|
|
|
|
|
|
|
[env:bike_ble]
|
|
|
|
extends = env:bike
|
|
|
|
lib_deps =
|
|
|
|
${env:bike.lib_deps}
|
|
|
|
nkolban/ESP32 BLE Arduino@1.0.1
|
|
|
|
src_build_flags =
|
|
|
|
${env:bike.src_build_flags}
|
2021-03-31 18:50:00 +00:00
|
|
|
|
2021-04-10 18:10:25 +00:00
|
|
|
[env:esp32]
|
2022-06-11 09:02:27 +00:00
|
|
|
extends = config_nocolor
|
2023-02-18 16:47:25 +00:00
|
|
|
extra_scripts = verify-configs.py
|
2023-02-19 17:47:48 +00:00
|
|
|
board_build.filesystem = littlefs
|
2021-03-29 08:10:55 +00:00
|
|
|
platform = espressif32
|
|
|
|
board = featheresp32
|
|
|
|
framework = arduino
|
2022-06-11 09:02:27 +00:00
|
|
|
src_build_flags =
|
|
|
|
${common_env_data.src_build_flags}
|
|
|
|
${config_nocolor.src_build_flags}
|
2021-04-10 18:10:25 +00:00
|
|
|
-DPLATFORM_ARDUINO
|
|
|
|
-DBOARD_ESP32
|
2023-02-19 17:47:48 +00:00
|
|
|
-DCONFIG_THREADED_INPUTS
|
2021-03-31 18:50:00 +00:00
|
|
|
lib_deps =
|
2022-06-11 09:02:27 +00:00
|
|
|
${common_env_data.lib_deps_external}
|
|
|
|
src_filter = "${common_env_data.src_filter}"
|
2023-02-18 14:34:28 +00:00
|
|
|
monitor_filters = esp32_exception_decoder
|
2023-02-19 17:47:48 +00:00
|
|
|
monitor_speed = 115200
|
2023-02-18 14:34:28 +00:00
|
|
|
upload_speed = 115200
|
2021-03-31 18:50:00 +00:00
|
|
|
|
2022-06-11 09:02:27 +00:00
|
|
|
[env:esp8266-12f]
|
|
|
|
extends = env:esp8266
|
|
|
|
board = esp12e
|
2021-04-10 18:10:25 +00:00
|
|
|
|
|
|
|
[env:esp8266]
|
2021-03-31 18:50:00 +00:00
|
|
|
platform = espressif8266
|
|
|
|
board = huzzah
|
|
|
|
framework = arduino
|
2023-02-18 14:34:28 +00:00
|
|
|
board_build.filesystem = littlefs
|
2022-06-11 09:02:27 +00:00
|
|
|
src_build_flags =
|
|
|
|
${common_env_data.src_build_flags}
|
2021-04-10 18:10:25 +00:00
|
|
|
-DPLATFORM_ARDUINO
|
|
|
|
-DBOARD_ESP8266
|
2022-06-11 09:02:27 +00:00
|
|
|
-DCORE_DEBUG_LEVEL=5
|
|
|
|
-fstack-protector
|
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_external}
|
2021-03-31 18:50:00 +00:00
|
|
|
arduino-libraries/NTPClient@^3.1.0
|
2023-03-03 17:21:30 +00:00
|
|
|
src_filter = "${common_env_data.src_filter}"
|
2022-06-11 09:02:27 +00:00
|
|
|
|
2023-02-18 14:34:28 +00:00
|
|
|
[env:esp32_bluetooth]
|
2022-06-11 09:02:27 +00:00
|
|
|
extends = env:esp32, config_bluetooth
|
2023-02-18 14:34:28 +00:00
|
|
|
src_filter = "${env:esp32.src_filter} ${config_mqtt.src_filter} ${config_wifi.src_filter} ${config_bluetooth.src_filter}"
|
2022-06-11 09:02:27 +00:00
|
|
|
lib_deps =
|
|
|
|
${env:esp32.lib_deps}
|
|
|
|
${config_bluetooth.lib_deps}
|
2023-02-18 14:34:28 +00:00
|
|
|
${config_mqtt.lib_deps}
|
2022-06-11 09:02:27 +00:00
|
|
|
src_build_flags =
|
|
|
|
${env:esp32.src_build_flags}
|
|
|
|
${config_bluetooth.src_build_flags}
|
2023-02-18 14:34:28 +00:00
|
|
|
${config_wifi.src_build_flags}
|
2023-02-19 17:47:48 +00:00
|
|
|
-DRENDERBUG_LED_PIN=14
|
2022-06-11 09:02:27 +00:00
|
|
|
|
2023-02-18 14:34:28 +00:00
|
|
|
[env:esp32_wifi]
|
2022-06-11 09:02:27 +00:00
|
|
|
extends = env:esp32, config_wifi, config_mqtt
|
|
|
|
src_filter = "${env:esp32.src_filter} ${config_wifi.src_filter} ${config_mqtt.src_filter}"
|
2023-02-19 17:47:48 +00:00
|
|
|
buid_type = debug
|
|
|
|
lib_deps =
|
|
|
|
${env:esp32.lib_deps}
|
|
|
|
${config_mqtt.lib_deps}
|
|
|
|
src_build_flags =
|
|
|
|
${env:esp32.src_build_flags}
|
|
|
|
${config_mqtt.src_build_flags}
|
|
|
|
${config_wifi.src_build_flags}
|
|
|
|
-DRENDERBUG_LED_PIN=14
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
[env:esp32_wifi_display]
|
|
|
|
extends = env:esp32, config_wifi, config_mqtt, config_u8display
|
|
|
|
src_filter = "${env:esp32.src_filter} ${config_wifi.src_filter} ${config_mqtt.src_filter} ${config_u8display.src_filter}"
|
|
|
|
build_type = debug
|
2022-06-11 09:02:27 +00:00
|
|
|
lib_deps =
|
|
|
|
${env:esp32.lib_deps}
|
|
|
|
${config_mqtt.lib_deps}
|
2023-02-19 17:47:48 +00:00
|
|
|
${config_u8display.lib_deps}
|
2022-06-11 09:02:27 +00:00
|
|
|
src_build_flags =
|
|
|
|
${env:esp32.src_build_flags}
|
|
|
|
${config_mqtt.src_build_flags}
|
|
|
|
${config_wifi.src_build_flags}
|
2023-02-19 17:47:48 +00:00
|
|
|
${config_u8display.src_build_flags}
|
|
|
|
-DRENDERBUG_LED_PIN=14
|
2022-06-11 09:02:27 +00:00
|
|
|
|
|
|
|
[env:prototype]
|
|
|
|
extends = env:esp32, config_buttons, config_mpu5060
|
|
|
|
src_filter = "${env:esp32.src_filter} ${config_buttons.src_filter} ${config_mpu5060.src_filter}"
|
|
|
|
|
2023-02-18 14:34:28 +00:00
|
|
|
[env:esp8266_wifi]
|
2022-06-11 09:02:27 +00:00
|
|
|
extends = env:esp8266, config_wifi, config_mqtt, config_ota
|
|
|
|
src_filter = "${env:esp32.src_filter} ${config_ota.src_filter} ${config_wifi.src_filter} ${config_mqtt.src_filter}"
|
|
|
|
src_build_flags =
|
|
|
|
${env:esp8266.src_build_flags}
|
|
|
|
${config_mqtt.src_build_flags}
|
|
|
|
${config_wifi.src_build_flags}
|
|
|
|
${config_ota.src_build_flags}
|
|
|
|
lib_deps =
|
|
|
|
${env:esp8266.lib_deps}
|
|
|
|
${config_mqtt.lib_deps}
|
|
|
|
ESP8266WiFi
|
|
|
|
${config_ota.lib_deps}
|
|
|
|
|
2023-02-18 16:47:25 +00:00
|
|
|
#[env:home_lighting_grb]
|
|
|
|
#extends = env:esp8266_wifi config_u8display
|
|
|
|
#src_build_flags =
|
|
|
|
# ${env:home_lighting.src_build_flags}
|
|
|
|
# -DRENDERBUG_LED_PACKING=GRB
|
2022-06-11 09:02:27 +00:00
|
|
|
|
2023-02-18 16:47:25 +00:00
|
|
|
#[env:home_lighting-12f]
|
|
|
|
#extends = env:esp8266_wifi config_u8display
|
|
|
|
#board = esp12e
|