a2cabinLights/platformio.ini

58 lines
1.1 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]
platform = espressif32
board = esp32-poe
framework = arduino
upload_port=/dev/cu.wchusbserial141230
monitor_baud = 115200
build_flags = -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG
[env:controller]
platform = espressif32
board = esp32-poe
framework = arduino
monitor_baud = 115200
src_filter = +<controller_main.cpp>
lib_deps =
ESP Async WebServer
[env:light1]
src_filter = +<light_main.cpp>
lib_deps =
WebSockets
build_flags = -DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG
;build_flags = -DROLE=LIGHT1
[env:light2]
src_filter = +<light_main.cpp>
lib_deps =
WebSockets
build_flags = -DROLE=LIGHT2
[env:light3]
src_filter = +<light_main.cpp>
lib_deps =
WebSockets
build_flags = -DROLE=LIGHT3
[env:light4]
src_filter = +<light_main.cpp>
lib_deps =
WebSockets
build_flags = -DROLE=LIGHT4