cleanup main.cpp, split platform code into a Platform object
This commit is contained in:
@@ -8,17 +8,37 @@
|
||||
; Please visit documentation for the other options and examples
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[common_env_data]
|
||||
src_filter = "+<*> -<.git/> -<.svn/> -<platform/>"
|
||||
|
||||
[env:featheresp32]
|
||||
platform = espressif32
|
||||
board = featheresp32
|
||||
framework = arduino
|
||||
build_flags =
|
||||
-D PLATFORM_ARDUINO
|
||||
-D BOARD_ESP32
|
||||
lib_deps =
|
||||
fastled/FastLED@^3.4.0
|
||||
thijse/ArduinoLog@^1.0.3
|
||||
knolleary/PubSubClient@^2.8.0
|
||||
bblanchon/ArduinoJson@^6.17.3
|
||||
ricaun/ArduinoUniqueID@^1.1.0
|
||||
sstaub/NTP@^1.4.0
|
||||
src_filter = "+<*> -<.git/> -<.svn/> -<platform/> +<platform/arduino/>"
|
||||
; upload_protocol = espota
|
||||
; upload_port = 10.0.0.171
|
||||
arduino-libraries/NTPClient@^3.1.0
|
||||
src_filter = "${common_env_data.src_filter} +<platform/arduino/>"
|
||||
|
||||
[env:huzzah]
|
||||
platform = espressif8266
|
||||
board = huzzah
|
||||
framework = arduino
|
||||
build_flags =
|
||||
-D PLATFORM_ARDUINO
|
||||
-D BOARD_ESP8266
|
||||
lib_deps =
|
||||
fastled/FastLED@^3.4.0
|
||||
thijse/ArduinoLog@^1.0.3
|
||||
knolleary/PubSubClient@^2.8.0
|
||||
bblanchon/ArduinoJson@^6.17.3
|
||||
sstaub/NTP@^1.4.0
|
||||
arduino-libraries/NTPClient@^3.1.0
|
||||
src_filter = "${common_env_data.src_filter} +<platform/arduino/>"
|
||||
|
||||
Reference in New Issue
Block a user