2018-10-05 22:41:25 +02: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
|
2021-03-13 21:20:16 +01:00
|
|
|
; https://docs.platformio.org/page/projectconf.html
|
2018-10-05 22:41:25 +02:00
|
|
|
|
2021-03-14 15:34:37 +01:00
|
|
|
[platformio]
|
|
|
|
default_envs = esp32
|
|
|
|
|
2021-08-20 14:42:37 +02:00
|
|
|
[common_env_data]
|
2022-02-10 18:18:23 +01:00
|
|
|
platform = espressif32@3.5
|
2021-10-12 01:57:30 +02:00
|
|
|
framework = arduino
|
2022-02-13 18:58:17 +01:00
|
|
|
lib_deps_external =
|
2021-03-27 04:07:25 +01:00
|
|
|
haimoz/SoftFilters@^0.1.0
|
2021-08-22 14:47:42 +02:00
|
|
|
marvinroger/AsyncMqttClient@^0.9.0
|
2021-03-27 04:07:25 +01:00
|
|
|
bblanchon/ArduinoJson@^6.17.3
|
2021-09-21 19:55:41 +02:00
|
|
|
https://github.com/ESPresense/ESP-WiFiSettings.git
|
2022-02-14 13:50:30 +01:00
|
|
|
h2zero/NimBLE-Arduino@^1.3.3
|
2021-03-27 04:07:25 +01:00
|
|
|
me-no-dev/AsyncTCP@^1.1.1
|
2021-03-15 20:58:17 +01:00
|
|
|
bbx10/DNSServer@^1.1.0
|
2022-02-10 18:18:23 +01:00
|
|
|
build_flags =
|
|
|
|
-D CONFIG_BT_NIMBLE_PINNED_TO_CORE=1
|
|
|
|
|
|
|
|
[common_sensors]
|
|
|
|
lib_deps_external =
|
2021-09-28 17:27:17 +02:00
|
|
|
adafruit/Adafruit Unified Sensor @ ^1.1.4
|
|
|
|
beegee-tokyo/DHT sensor library for ESPx @ ^1.18
|
2021-10-09 16:22:02 +02:00
|
|
|
starmbi/hp_BH1750 @ ^1.0.0
|
2022-02-13 11:45:58 +01:00
|
|
|
adafruit/Adafruit BME280 Library@^2.2.2
|
|
|
|
adafruit/Adafruit TSL2561@^1.1.0
|
2021-08-20 14:42:37 +02:00
|
|
|
|
|
|
|
[env:esp32]
|
2021-10-12 01:57:30 +02:00
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
2021-08-20 14:42:37 +02:00
|
|
|
board = esp32dev
|
2022-02-13 18:58:17 +01:00
|
|
|
lib_deps = ${common_env_data.lib_deps_external}
|
2021-03-14 15:34:37 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
2022-02-10 18:18:23 +01:00
|
|
|
upload_speed = 1500000
|
2021-08-23 15:48:40 +02:00
|
|
|
monitor_filters = esp32_exception_decoder
|
2022-02-13 18:58:17 +01:00
|
|
|
build_flags =
|
2021-03-20 06:18:10 +01:00
|
|
|
-D FIRMWARE='"esp32"'
|
2021-08-23 15:48:40 +02:00
|
|
|
|
2021-09-25 16:46:19 +02:00
|
|
|
[env:adafruit-huzzah32]
|
2021-10-12 01:57:30 +02:00
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
2021-09-25 05:50:36 +02:00
|
|
|
board = esp32dev
|
2022-02-13 18:58:17 +01:00
|
|
|
lib_deps = ${common_env_data.lib_deps_external}
|
2021-09-25 05:50:36 +02:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
|
|
|
monitor_filters = esp32_exception_decoder
|
2022-02-13 18:58:17 +01:00
|
|
|
build_flags =
|
2021-09-25 16:46:19 +02:00
|
|
|
-D FIRMWARE='"adafruit-huzzah32"'
|
2021-09-25 05:50:36 +02:00
|
|
|
-D HUZZAH32
|
|
|
|
|
2021-08-20 14:42:37 +02:00
|
|
|
[env:esp32-verbose]
|
2021-10-12 01:57:30 +02:00
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
2021-08-20 14:42:37 +02:00
|
|
|
board = esp32dev
|
2022-02-13 18:58:17 +01:00
|
|
|
lib_deps = ${common_env_data.lib_deps_external}
|
2021-08-20 14:42:37 +02:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
2021-09-15 18:11:32 +02:00
|
|
|
upload_speed = 1500000
|
2021-08-23 15:48:40 +02:00
|
|
|
monitor_filters = esp32_exception_decoder
|
2022-02-13 18:58:17 +01:00
|
|
|
build_flags =
|
2021-09-15 18:11:32 +02:00
|
|
|
-D CORE_DEBUG_LEVEL=2
|
2021-08-20 14:42:37 +02:00
|
|
|
-D FIRMWARE='"esp32-verbose"'
|
|
|
|
-D VERBOSE
|
2021-08-23 15:48:40 +02:00
|
|
|
|
2021-03-14 15:34:37 +01:00
|
|
|
[env:m5stickc]
|
2021-10-12 01:57:30 +02:00
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
2021-03-14 15:34:37 +01:00
|
|
|
board = m5stick-c
|
2022-02-13 18:58:17 +01:00
|
|
|
lib_deps =
|
2021-03-14 15:34:37 +01:00
|
|
|
m5stack/M5StickC@^0.2.0
|
2021-08-20 14:42:37 +02:00
|
|
|
${common_env_data.lib_deps_external}
|
2021-03-14 15:34:37 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
2021-08-23 15:48:40 +02:00
|
|
|
monitor_filters = esp32_exception_decoder
|
2022-02-13 18:58:17 +01:00
|
|
|
build_flags =
|
2021-03-14 15:34:37 +01:00
|
|
|
-D M5STICK
|
2021-03-20 06:18:10 +01:00
|
|
|
-D FIRMWARE='"m5stickc"'
|
2021-08-23 15:48:40 +02:00
|
|
|
|
2021-03-14 15:34:37 +01:00
|
|
|
[env:m5stickc-plus]
|
2021-10-12 01:57:30 +02:00
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
2021-03-14 15:34:37 +01:00
|
|
|
board = m5stick-c
|
2022-02-13 18:58:17 +01:00
|
|
|
lib_deps =
|
2021-08-22 15:50:14 +02:00
|
|
|
m5stack/M5StickCPlus@^0.0.2
|
2021-08-20 14:42:37 +02:00
|
|
|
${common_env_data.lib_deps_external}
|
2021-03-14 15:34:37 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
2021-08-23 15:48:40 +02:00
|
|
|
monitor_filters = esp32_exception_decoder
|
2022-02-13 18:58:17 +01:00
|
|
|
build_flags =
|
2021-03-14 15:34:37 +01:00
|
|
|
-D M5STICK
|
|
|
|
-D PLUS
|
2021-03-20 06:18:10 +01:00
|
|
|
-D FIRMWARE='"m5stickc-plus"'
|
2021-08-23 15:48:40 +02:00
|
|
|
|
2021-03-27 15:58:54 +01:00
|
|
|
[env:m5atom-matrix]
|
2021-10-12 01:57:30 +02:00
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
2021-03-20 06:18:10 +01:00
|
|
|
board = m5stack-atom
|
2022-02-13 18:58:17 +01:00
|
|
|
lib_deps =
|
2021-09-17 00:18:15 +02:00
|
|
|
fastled/FastLED@^3.4.0
|
|
|
|
m5stack/m5atom@^0.0.5
|
2021-08-20 14:42:37 +02:00
|
|
|
${common_env_data.lib_deps_external}
|
2021-03-20 06:18:10 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
2021-08-23 15:48:40 +02:00
|
|
|
monitor_filters = esp32_exception_decoder
|
2022-02-13 18:58:17 +01:00
|
|
|
build_flags =
|
2021-03-20 06:18:10 +01:00
|
|
|
-D M5ATOM
|
|
|
|
-D MATRIX
|
2021-03-27 15:58:54 +01:00
|
|
|
-D FIRMWARE='"m5atom-matrix"'
|
2021-09-22 02:51:54 +02:00
|
|
|
|
|
|
|
[env:macchina-a0]
|
2021-10-12 01:57:30 +02:00
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
2021-09-22 02:51:54 +02:00
|
|
|
board = esp32dev
|
2022-02-13 18:58:17 +01:00
|
|
|
lib_deps = ${common_env_data.lib_deps_external}
|
2021-09-22 02:51:54 +02:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
2022-02-13 18:58:17 +01:00
|
|
|
build_flags =
|
2021-11-15 00:54:19 +01:00
|
|
|
-D MACCHINA_A0
|
2021-09-22 02:51:54 +02:00
|
|
|
-D FIRMWARE='"macchina-a0"'
|
2022-02-10 13:09:56 +01:00
|
|
|
|
|
|
|
[env:esp32-sensors]
|
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
|
|
|
board = esp32dev
|
2022-02-10 18:18:23 +01:00
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_external}
|
|
|
|
${common_sensors.lib_deps_external}
|
2022-02-10 13:09:56 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 115200
|
|
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
build_flags =
|
|
|
|
-D FIRMWARE='"esp32-sensors"'
|
|
|
|
-D SENSORS
|
|
|
|
|
|
|
|
[env:adafruit-huzzah32-sensors]
|
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
|
|
|
board = esp32dev
|
2022-02-10 18:18:23 +01:00
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_external}
|
|
|
|
${common_sensors.lib_deps_external}
|
2022-02-10 13:09:56 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
|
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
build_flags =
|
|
|
|
-D FIRMWARE='"adafruit-huzzah32-sensors"'
|
|
|
|
-D HUZZAH32
|
|
|
|
-D SENSORS
|
|
|
|
|
|
|
|
[env:esp32-verbose-sensors]
|
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
|
|
|
board = esp32dev
|
2022-02-10 18:18:23 +01:00
|
|
|
lib_deps =
|
|
|
|
${common_env_data.lib_deps_external}
|
|
|
|
${common_sensors.lib_deps_external}
|
2022-02-10 13:09:56 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
|
|
|
upload_speed = 1500000
|
|
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
build_flags =
|
|
|
|
-D CORE_DEBUG_LEVEL=2
|
|
|
|
-D FIRMWARE='"esp32-verbose-sensors"'
|
|
|
|
-D VERBOSE
|
|
|
|
|
|
|
|
[env:m5stickc-sensors]
|
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
|
|
|
board = m5stick-c
|
|
|
|
lib_deps =
|
|
|
|
m5stack/M5StickC@^0.2.0
|
|
|
|
${common_env_data.lib_deps_external}
|
2022-02-10 18:18:23 +01:00
|
|
|
${common_sensors.lib_deps_external}
|
2022-02-10 13:09:56 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
|
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
build_flags =
|
|
|
|
-D M5STICK
|
|
|
|
-D FIRMWARE='"m5stickc-sensors"'
|
|
|
|
-D SENSORS
|
|
|
|
|
|
|
|
[env:m5stickc-plus-sensors]
|
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
|
|
|
board = m5stick-c
|
|
|
|
lib_deps =
|
|
|
|
m5stack/M5StickCPlus@^0.0.2
|
|
|
|
${common_env_data.lib_deps_external}
|
2022-02-10 18:18:23 +01:00
|
|
|
${common_sensors.lib_deps_external}
|
2022-02-10 13:09:56 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
|
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
build_flags =
|
|
|
|
-D M5STICK
|
|
|
|
-D PLUS
|
|
|
|
-D FIRMWARE='"m5stickc-plus-sensors"'
|
|
|
|
-D SENSORS
|
|
|
|
|
|
|
|
[env:m5atom-matrix-sensors]
|
|
|
|
platform = ${common_env_data.platform}
|
|
|
|
framework = ${common_env_data.framework}
|
|
|
|
board = m5stack-atom
|
|
|
|
lib_deps =
|
|
|
|
fastled/FastLED@^3.4.0
|
|
|
|
m5stack/m5atom@^0.0.5
|
|
|
|
${common_env_data.lib_deps_external}
|
2022-02-10 18:18:23 +01:00
|
|
|
${common_sensors.lib_deps_external}
|
2022-02-10 13:09:56 +01:00
|
|
|
board_build.partitions = partitions_singleapp.csv
|
|
|
|
monitor_speed = 115200
|
|
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
build_flags =
|
|
|
|
-D M5ATOM
|
|
|
|
-D MATRIX
|
|
|
|
-D FIRMWARE='"m5atom-matrix-sensors"'
|
2022-02-12 19:52:12 +01:00
|
|
|
-D SENSORS
|