updated platformio.ini
This commit is contained in:
parent
fbe5f0b202
commit
d723290e57
@ -11,20 +11,13 @@
|
|||||||
[platformio]
|
[platformio]
|
||||||
extra_configs =
|
extra_configs =
|
||||||
wifi_credentials.ini
|
wifi_credentials.ini
|
||||||
default_envs = pcb_rev_1-3, pcb_rev_1-2
|
default_envs = pcb_rev_1-3_serial, pcb_rev_1-3_ota, pcb_rev_1-2_serial, pcb_rev_1-2_ota
|
||||||
|
|
||||||
[env]
|
[env]
|
||||||
platform = espressif8266
|
platform = espressif8266
|
||||||
board = d1_mini
|
board = d1_mini
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
upload_speed = 921600
|
||||||
upload_speed = 921600
|
|
||||||
|
|
||||||
upload_protocol = espota
|
|
||||||
upload_port = 10.0.1.14
|
|
||||||
upload_flags =
|
|
||||||
--port=8266
|
|
||||||
--auth=${wifi_cred.admin_password}
|
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
!python codegen/git_rev_macro.py
|
!python codegen/git_rev_macro.py
|
||||||
@ -58,21 +51,48 @@ lib_deps =
|
|||||||
coryjfowler/mcp_can @ ^1.5.0
|
coryjfowler/mcp_can @ ^1.5.0
|
||||||
mikalhart/TinyGPSPlus @ ^1.0.3
|
mikalhart/TinyGPSPlus @ ^1.0.3
|
||||||
|
|
||||||
[env:pcb_rev_1-3]
|
|
||||||
;build_type = debug
|
[env:pcb_rev_1-3_serial]
|
||||||
|
extends = env
|
||||||
custom_pcb_revision = 3
|
custom_pcb_revision = 3
|
||||||
|
upload_protocol = esptool
|
||||||
build_flags =
|
build_flags =
|
||||||
${env.build_flags}
|
${env.build_flags}
|
||||||
-DPCB_REV=${this.custom_pcb_revision}
|
-DPCB_REV=${this.custom_pcb_revision}
|
||||||
|
|
||||||
board_build.ldscript = eagle.flash.4m1m.ld
|
board_build.ldscript = eagle.flash.4m1m.ld
|
||||||
|
|
||||||
[env:pcb_rev_1-2]
|
[env:pcb_rev_1-3_ota]
|
||||||
;build_type = debug
|
extends = env
|
||||||
|
custom_pcb_revision = 3
|
||||||
|
upload_protocol = espota
|
||||||
|
upload_port = 10.0.1.14
|
||||||
|
upload_flags =
|
||||||
|
--port=8266
|
||||||
|
--auth=${wifi_cred.admin_password}
|
||||||
|
build_flags =
|
||||||
|
${env.build_flags}
|
||||||
|
-DPCB_REV=${this.custom_pcb_revision}
|
||||||
|
board_build.ldscript = eagle.flash.4m1m.ld
|
||||||
|
|
||||||
|
|
||||||
|
[env:pcb_rev_1-2_serial]
|
||||||
|
extends = env
|
||||||
custom_pcb_revision = 2
|
custom_pcb_revision = 2
|
||||||
|
upload_protocol = esptool
|
||||||
build_flags =
|
build_flags =
|
||||||
${env.build_flags}
|
${env.build_flags}
|
||||||
-DPCB_REV=${this.custom_pcb_revision}
|
-DPCB_REV=${this.custom_pcb_revision}
|
||||||
|
|
||||||
board_build.ldscript = eagle.flash.4m1m.ld
|
board_build.ldscript = eagle.flash.4m1m.ld
|
||||||
|
|
||||||
|
[env:pcb_rev_1-2_ota]
|
||||||
|
extends = env
|
||||||
|
custom_pcb_revision = 2
|
||||||
|
upload_protocol = espota
|
||||||
|
upload_port = 10.0.1.14
|
||||||
|
upload_flags =
|
||||||
|
--port=8266
|
||||||
|
--auth=${wifi_cred.admin_password}
|
||||||
|
build_flags =
|
||||||
|
${env.build_flags}
|
||||||
|
-DPCB_REV=${this.custom_pcb_revision}
|
||||||
|
board_build.ldscript = eagle.flash.4m1m.ld
|
||||||
|
Loading…
x
Reference in New Issue
Block a user