This commit is contained in:
Paul
2020-05-18 21:00:38 +02:00
parent 97ddf80ea8
commit be4f075663
18 changed files with 270 additions and 141 deletions

View File

@@ -2,7 +2,7 @@
; For EMS-ESP
[platformio]
;default_envs = esp8266
default_envs = esp8266
;default_envs = esp32
# override any settings with your own local ones in pio_local.ini
@@ -45,11 +45,22 @@ libs_esp32 =
[env]
build_unflags = -fno-rtti ; for dynamic_cast<>
;lib_ldf_mode = chain+
lib_ldf_mode = chain+
lib_compat_mode = strict
extra_scripts = scripts/main_script.py
framework = arduino
monitor_speed = 115200
upload_speed = 921600
check_tool = cppcheck, clangtidy
check_severity = high, medium
check_flags =
cppcheck: --std=c++11
clangtidy: --checks=-*,clang-analyzer-*,performance-*
; example ports for OSX
;upload_port = /dev/cu.wchusbserial14403
;upload_port = /dev/cu.usbserial-1440
;upload_port = /dev/cu.SLAB_USBtoUART
; OTA
upload_protocol = esptool
@@ -63,8 +74,8 @@ upload_protocol = esptool
build_type = release
platform = espressif8266 ; https://github.com/platformio/platform-espressif8266/releases
;platform = espressif8266@2.4.0 ; Arduino core 2.6.3
; board = esp12e
board = d1_mini ; https://github.com/platformio/platform-espressif8266/blob/master/boards/d1_mini.json
board = esp12e
; board = d1_mini ; https://github.com/platformio/platform-espressif8266/blob/master/boards/d1_mini.json
lib_deps = ${common.libs_core} ${common.libs_esp8266}
board_build.f_cpu = 160000000L ; 160MHz
;board_build.ldscript = eagle.flash.4m1m.ld ; 1019 KB sketch, 1000 KB SPIFFS. 4KB EEPROM, 4KB RFCAL, 12KB WIFI stack, 2052 KB OTA & buffer