Split esp8266 configs to platform and boards; fix defaults
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
+; IMPORTANT: This file defines the environment for building SensESP
+; itself when doing feature development. It must NOT be used as a template
+; for projects merely based on SensESP. For that purpose, use the file
+; examples/platformio.ini instead.
+
[platformio]
;set default_envs to whichever board(s) you use. Build/Run/etc processes those envs
default_envs =
@@ -43,29 +48,27 @@ lib_deps =
EspSoftwareSerial
https://github.com/JoaoLopesF/RemoteDebug.git#0b5a9c1a49fd2ade0e3cadc3a3707781e819359a
-[env:d1_mini]
+[espressif8266_base]
+;this section has config items common to all ESP8266 boards
platform = espressif8266
-board = d1_mini
-board_build.f_cpu = 160000000L
-upload_resetmethod = nodemcu
build_flags =
-Wl,-Teagle.flash.4m1m.ld
-Wall
-Wno-reorder
-upload_speed = 460800
-; un-comment the following if you have extra actions contained in script
extra_scripts = extra_script.py
+[env:d1_mini]
+extends = espressif8266_base
+board = d1_mini
+board_build.f_cpu = 160000000L
+upload_resetmethod = nodemcu
+upload_speed = 460800
+
[espressif32_base]
-;this section has config items common to the espressif32 platform
+;this section has config items common to all ESP32 boards
platform = espressif32
-; Un-comment the following if you get an error about [-Werror=reorder]
build_unflags = -Werror=reorder
-; Un-comment the following if you get an error about
-; insufficient memory after compiling and linking:
-board_build.partitions = no_ota.csv
-; Un-comment the following if you want more
-; details about runtime errors:
+board_build.partitions = min_spiffs.csv
monitor_filters = esp32_exception_decoder
[env:esp32dev]
@@ -76,4 +79,3 @@ board = esp32dev
extends = espressif32_base
board = esp-wrover-kit
upload_speed = 460800
-
