2018-09-08 22:48:31 +02:00
|
|
|
[platformio]
|
|
|
|
src_dir = ./Arduino/McLighting/
|
2018-11-06 17:13:59 +01:00
|
|
|
data_dir = ./Arduino/McLighting/data/
|
2019-03-24 03:33:39 +01:00
|
|
|
env_default = esp_wroom_02
|
2018-09-16 22:09:30 +02:00
|
|
|
description = The ESP8266 based multi-client lighting gadget
|
|
|
|
|
|
|
|
[common]
|
2019-01-24 18:26:46 +01:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# PLATFORM:
|
|
|
|
# !! DO NOT confuse platformio's ESP8266 development platform with Arduino core for ESP8266
|
2019-03-07 17:43:23 +01:00
|
|
|
# We use Arduino Core 2.5.0 (platformIO 2.0.4) as default
|
2019-01-24 18:26:46 +01:00
|
|
|
#
|
|
|
|
# arduino core 2.3.0 = platformIO 1.5.0
|
|
|
|
# arduino core 2.4.0 = platformIO 1.6.0
|
|
|
|
# arduino core 2.4.1 = platformIO 1.7.3
|
|
|
|
# arduino core 2.4.2 = platformIO 1.8.0
|
2019-03-07 17:43:23 +01:00
|
|
|
# arduino core 2.5.0 = platformIO 2.0.4
|
2019-02-13 17:31:36 +01:00
|
|
|
# arduino core stage = platformIO feature#stage
|
2019-01-24 18:26:46 +01:00
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
arduino_core_2_3_0 = espressif8266@1.5.0
|
|
|
|
arduino_core_2_4_0 = espressif8266@1.6.0
|
|
|
|
arduino_core_2_4_1 = espressif8266@1.7.3
|
|
|
|
arduino_core_2_4_2 = espressif8266@1.8.0
|
2019-03-07 17:43:23 +01:00
|
|
|
arduino_core_2_5_0 = espressif8266@2.0.4
|
2019-02-13 17:24:41 +01:00
|
|
|
arduino_core_stage = https://github.com/platformio/platform-espressif8266.git#feature/stage
|
2019-01-24 18:26:46 +01:00
|
|
|
|
2019-01-15 23:53:39 +01:00
|
|
|
framework = arduino
|
2019-02-13 17:24:41 +01:00
|
|
|
; platform = ${common.arduino_core_2_4_2}
|
|
|
|
platform = ${common.arduino_core_2_5_0}
|
2019-01-24 18:26:46 +01:00
|
|
|
|
2018-09-16 22:09:30 +02:00
|
|
|
build_flags =
|
|
|
|
-DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
|
2019-02-13 17:24:41 +01:00
|
|
|
-DMQTT_MAX_PACKET_SIZE=512 ; PubSubClient Specific flags
|
2018-12-11 16:30:31 +01:00
|
|
|
-w ; supress all warnings
|
2018-09-16 22:09:30 +02:00
|
|
|
monitor_speed = 115200
|
|
|
|
board_build.flash_mode = dout
|
|
|
|
upload_speed = 115200
|
|
|
|
upload_resetmethod = nodemcu
|
2019-01-15 23:53:39 +01:00
|
|
|
lib_deps =
|
|
|
|
WiFiManager@0.14
|
|
|
|
AsyncMqttClient
|
2019-02-11 23:31:12 +01:00
|
|
|
https://github.com/bblanchon/ArduinoJson.git#v6.8.0-beta
|
2019-01-15 23:53:39 +01:00
|
|
|
WS2812FX
|
2019-03-07 18:49:30 +01:00
|
|
|
NeoPixelBus
|
2019-01-15 23:53:39 +01:00
|
|
|
WebSockets
|
|
|
|
ESPAsyncE131
|
|
|
|
ESPAsyncUDP
|
2019-03-05 06:38:40 +01:00
|
|
|
;PubSubClient ;neede for #define ENABLE_MQTT
|
|
|
|
;FastLED ;needed for #define CUSTOM_WS2812FX_ANIMATIONS
|
|
|
|
targets_eum = erase, upload, monitor
|
|
|
|
targets_um = upload, monitor
|
2018-09-08 22:48:31 +02:00
|
|
|
|
2019-03-07 18:49:30 +01:00
|
|
|
[env:nodemcuv2]
|
|
|
|
board = nodemcuv2
|
2019-01-15 23:53:39 +01:00
|
|
|
framework = ${common.framework}
|
|
|
|
platform = ${common.platform}
|
2019-03-07 18:49:30 +01:00
|
|
|
build_flags =
|
|
|
|
${common.build_flags}
|
|
|
|
-Wl,-Teagle.flash.4m3m.ld ;;;; Required for core > v2.5.0 or staging version
|
2018-09-16 22:09:30 +02:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
upload_resetmethod = ${common.upload_resetmethod}
|
2019-01-15 23:53:39 +01:00
|
|
|
lib_deps = ${common.lib_deps}
|
2019-03-07 18:49:30 +01:00
|
|
|
; targets = ${common.targets_um}
|
2018-09-08 22:48:31 +02:00
|
|
|
|
2019-03-24 03:33:39 +01:00
|
|
|
|
|
|
|
[env:esp_wroom_02]
|
|
|
|
board = esp_wroom_02
|
|
|
|
framework = ${common.framework}
|
|
|
|
platform = ${common.platform}
|
|
|
|
build_flags =
|
|
|
|
${common.build_flags}
|
|
|
|
-Wl,-Teagle.flash.2m512.ld ;;;; Required for core > v2.5.0 or staging version
|
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
upload_resetmethod = ${common.upload_resetmethod}
|
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
; targets = ${common.targets_um}
|
|
|
|
|
2019-03-07 18:49:30 +01:00
|
|
|
[env:esp01_1m]
|
|
|
|
board = esp01_1m
|
2019-01-15 23:53:39 +01:00
|
|
|
framework = ${common.framework}
|
|
|
|
platform = ${common.platform}
|
2019-03-07 18:49:30 +01:00
|
|
|
build_flags = ${common.build_flags} -D D1=2
|
2018-09-16 22:09:30 +02:00
|
|
|
monitor_speed = ${common.monitor_speed}
|
|
|
|
upload_speed = ${common.upload_speed}
|
|
|
|
upload_resetmethod = ${common.upload_resetmethod}
|
2019-03-07 18:49:30 +01:00
|
|
|
board_build.flash_mode = dout
|
|
|
|
lib_deps = ${common.lib_deps}
|