From aee36c2724d0fad8bdf98acf39c17be00df5ccc2 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sun, 15 Dec 2019 04:58:52 +0900 Subject: [PATCH] slightly better pio.ini --- platformio.ini | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/platformio.ini b/platformio.ini index 215066c..1f8e746 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,11 +9,25 @@ ; then confirm the change --> ; $ platformio settings get + +; // pio v 4.0 'Build options' +; - build_type +; - build_flags +; - src_build_flags +; - build_unflags +; - src_filter +; - targets + + [platformio] default_envs = nodemcuv2 -[common] +[env] framework = arduino +upload_speed = 921600 +upload_port = + /dev/ttyUSB0 + /dev/tty.SLAB_USBtoUART lib_deps = SPI Wire @@ -23,33 +37,21 @@ lib_deps = [env:nodemcuv2] platform = espressif8266 board = nodemcuv2 -framework = ${common.framework} -upload_speed = 921600 -upload_port = /dev/ttyUSB0 lib_deps = ESP8266WiFi Servo(esp8266) - ${common.lib_deps} [env:huzzah] platform = espressif8266 board = huzzah -framework = ${common.framework} -upload_speed = 921600 -upload_port = /dev/ttyUSB0 lib_deps = ESP8266WiFi Servo(esp8266) - ${common.lib_deps} [env:featheresp32] build_unflags = -std=gnu++11 build_flags = -std=gnu++14 ; AsyncTCP wants this. platform = espressif32 board = featheresp32 -framework = ${common.framework} -upload_speed = 921600 -upload_port = /dev/ttyUSB0 lib_deps = 1826@1.0.3 ; AsyncTCP - ${common.lib_deps}