Libraries and settings to compile on 3 boards
Compiles for espressif8266 d1_mini; espressif32 esp32dev;
espressif32 esp-wrover-kit. Some duplicated ilibraries in
library.json and platform.ini to overcome IDE shortcomings
@@ -19,16 +19,21 @@ default_envs =
[env]
framework = arduino
monitor_speed = 115200
-;lib_deps =
-; https://github.com/SignalK/SensESP.git
+lib_deps =
+ https://github.com/SignalK/SensESP.git
+; ArduinoJson.h v 6.15.2 is default but incompatible with SensESP
+; if version 6 gets installed, use Library Manager to remove
+ ArduinoJson@^5.13.4
+; if using orientation sensor NXP FXOS/FXAS*, then need AHRS
+ Adafruit AHRS
+; refer to SoftwareSerial by number 7212, as there seem to be name-conflicts
+ 7212
; 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:
monitor_filters = esp32_exception_decoder
@@ -42,37 +47,23 @@ build_flags =
-Wl,-Teagle.flash.4m1m.ld
-Wall
-Wno-reorder
+ -I./.pio/libdeps/d1_mini/SoftwareSerial/
+; fix compile errors on Adafruit BluefruitLE nRF51: can't find SoftwareSerial.h
upload_speed = 460800
-extra_scripts = extra_script.py
+; un-comment the following if you have extra actions contained in script
+;extra_scripts = extra_script.py
[env:esp32dev]
platform = espressif32
board = esp32dev
+build_flags =
+ -I./.pio/libdeps/esp32dev/SoftwareSerial/
+; fix compile errors on Adafruit BluefruitLE nRF51: can't find SoftwareSerial.h
[env:esp-wrover-kit]
platform = espressif32
board = esp-wrover-kit
upload_speed = 460800
-;lib_deps =
-; ArduinoJson@^5.13.4;
-; ReactESP
-; https://github.com/SignalK/SensESP.git
-;following built-in ESP32 libraries are listed here, as otherwise get compiler errors about not
-;finding the associated *.h files.
-;Alternative is to #include <*.h> each file in main.cpp
-;Another alternative is to set include paths for the libraries (build_flags = -Ipath/to/lib)
-;Another alternative may be to list them in the library.json file
-;For more info see:
-;//https://community.platformio.org/t/espressif32-stage-and-arduino-wificlientsecure-missing/2331
-;//https://community.platformio.org/t/errors-when-compiling-esp32-code/11421/3
-; FS
-; SPIFFS
-; WiFi
-; WiFiClientSecure
-; SPI
-; ESPmDNS
-; ArduinoOTA
-; Update
-; HTTPClient
-; Adafruit AHRS
-
+build_flags =
+ -I./.pio/libdeps/esp-wrover-kit/SoftwareSerial/
+; fix compile errors on Adafruit BluefruitLE nRF51: can't find SoftwareSerial.h
