Przeglądaj źródła

platformio.ini updated to work with current PlatformIO release (env names must not contain . any more or it will fail to load)

FloKra 10 miesięcy temu
rodzic
commit
d8ddc7e3e5
2 zmienionych plików z 40 dodań i 23 usunięć
  1. 2 1
      .vscode/settings.json
  2. 38 22
      platformio.ini

+ 2 - 1
.vscode/settings.json

@@ -1,3 +1,4 @@
 {
-    "C_Cpp.dimInactiveRegions": false
+    "C_Cpp.dimInactiveRegions": false,
+    "cmake.configureOnOpen": true
 }

+ 38 - 22
platformio.ini

@@ -1,4 +1,4 @@
-;PlatformIO Project Configuration File
+; PlatformIO Project Configuration File
 ;
 ;   Build options: build flags, source filter
 ;   Upload options: custom upload port, speed and extra flags
@@ -8,17 +8,32 @@
 ; Please visit documentation for the other options and examples
 ; https://docs.platformio.org/page/projectconf.html
 
-[env:core2.6.3]
+[platformio]
+default_envs = core2-7-4_Minimal
+description  = ESP8266 IoT Base
+src_dir      = src
+; custom common options
+[common]
+framework = arduino
+board = d1_mini
+upload_speed = 921600
+upload_resetmethod = nodemcu
+monitor_speed = 115200
+#board_build.upload_speed = 921600
+#board_build.upload_resetmethod = nodemcu
+#monitor_speed = 115200
+
+[env:core2-6-3]
 platform = espressif8266@2.3.2
 ;platform: espressif8266@2.3.2 = Arduino Core 2.6.3
 board = d1_mini
 framework = arduino
 ;upload_port = COM[6]
-upload_speed = 921600
-upload_resetmethod = nodemcu
-monitor_speed = 115200
+#board_build.upload_speed = 921600
+#board_build.upload_resetmethod = nodemcu
+#monitor_speed = 115200
 
-[env:core2.7.4_minimal]
+[env:core2-7-4_Minimal]
 platform = espressif8266@2.6.3
 ;platform: espressif8266@2.6.2, 2.6.3 = Arduino Core 2.7.4
 board = d1_mini
@@ -26,11 +41,11 @@ framework = arduino
 #build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_THERMOSTAT
 #lib_extra_dirs          =
 ;upload_port = COM[6]
-upload_speed = 921600
-upload_resetmethod = nodemcu
-monitor_speed = 115200
+#board_build.upload_speed = 921600
+#board_build.upload_resetmethod = nodemcu
+#monitor_speed = 115200
 
-[env:core2.7.4_Thermostat]
+[env:core2-7-4_Thermostat]
 platform = espressif8266@2.6.3
 ;platform: espressif8266@2.6.2, 2.6.3 = Arduino Core 2.7.4
 board = d1_mini
@@ -38,11 +53,11 @@ framework = arduino
 build_flags = ${env.build_flags} -DFIRMWARE_VARIANT_THERMOSTAT
 #lib_extra_dirs          =
 ;upload_port = COM[6]
-upload_speed = 921600
-upload_resetmethod = nodemcu
-monitor_speed = 115200
-
-[env:core2.7.4_Heatcontrol]
+#upload_speed = 921600
+#upload_resetmethod = nodemcu
+#monitor_speed = 115200
+ 
+[env:core2-7-4_Heatcontrol]
 platform = espressif8266@2.6.3
 ;platform: espressif8266@2.6.2, 2.6.3 = Arduino Core 2.7.4
 board = d1_mini
@@ -54,7 +69,7 @@ upload_speed = 921600
 upload_resetmethod = nodemcu
 monitor_speed = 115200
 
-[env:core2.7.4_minimal_OTAflash]
+[env:core2-7-4_Minimal_OTAflash]
 platform = espressif8266@2.6.3
 ;platform: espressif8266@2.6.3  ; https://github.com/platformio/platform-espressif8266/releases  v2.6.3 implements Arduino Core 2.7.4
 board = d1_mini
@@ -69,8 +84,8 @@ upload_flags =
 #upload_speed = 921600
 #upload_resetmethod = nodemcu
 #monitor_speed = 115200
-
-[env:core2.7.4_Thermostat_OTAflash]
+ 
+[env:core2-7-4_Thermostat_OTAflash]
 platform = espressif8266@2.6.3
 ;platform: espressif8266@2.6.3  ; https://github.com/platformio/platform-espressif8266/releases  v2.6.3 implements Arduino Core 2.7.4
 board = d1_mini
@@ -86,7 +101,8 @@ upload_flags =
 #upload_resetmethod = nodemcu
 #monitor_speed = 115200
 
-[env:core2.7.4_Heatcontrol_OTAflash]
+
+[env:core2-7-4_Heatcontrol_OTAflash]
 platform = espressif8266@2.6.3
 ;platform: espressif8266@2.6.3  ; https://github.com/platformio/platform-espressif8266/releases  v2.6.3 implements Arduino Core 2.7.4
 board = d1_mini
@@ -102,7 +118,7 @@ upload_flags =
 #upload_resetmethod = nodemcu
 #monitor_speed = 115200
 
-[env:core3.0.2_Heatcontrol_OTAflash]
+[env:core3-0-2_Heatcontrol_OTAflash]
 platform = espressif8266@3.2.0  ; https://github.com/platformio/platform-espressif8266/releases  v3.2.0 implements Arduino Core v3.0.2
 board = d1_mini
 framework = arduino
@@ -117,7 +133,7 @@ upload_flags =
 #upload_resetmethod = nodemcu
 #monitor_speed = 115200
 
-[env:core3.1.1_Heatcontrol_OTAflash]
+[env:core3-1-1_Heatcontrol_OTAflash]
 platform = espressif8266@4.1.0  ; https://github.com/platformio/platform-espressif8266/releases  v4.1.0 implements Arduino Core v3.1.1
 board = d1_mini
 framework = arduino
@@ -130,4 +146,4 @@ upload_flags =
   --port=8266
 #upload_speed = 921600
 #upload_resetmethod = nodemcu
-#monitor_speed = 115200
+#monitor_speed = 115200