Skip to content

Commit

Permalink
Update platformio.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
ascillato authored May 11, 2018
1 parent 1697ada commit 766e762
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ src_dir = sonoff
;env_default = sonoff-IT
;env_default = sonoff-NL
;env_default = sonoff-PL
;env_default = sonoff-PT
;env_default = sonoff-PT_PT
;env_default = sonoff-PT_BR
;env_default = sonoff-RU
;env_default = sonoff-TW

Expand Down Expand Up @@ -74,8 +75,7 @@ upload_speed = 115200
upload_resetmethod = nodemcu
upload_port = COM5

;command to erase flash on command line:
; esptool.py --port COM5 erase_flash
;NOTE - command to erase flash from windows console: esptool.py --port COM18 erase_flash

; *** Upload file to OTA server using SCP
;upload_port = user@host:/path
Expand Down Expand Up @@ -282,7 +282,7 @@ upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}

[env:sonoff-PT]
[env:sonoff-PT_PT]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
Expand All @@ -294,6 +294,18 @@ upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}

[env:sonoff-PT_BR]
platform = ${common.platform}
framework = ${common.framework}
board = ${common.board}
board_flash_mode = ${common.board_flash_mode}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags} -DMY_LANGUAGE=pt-BR
monitor_baud = ${common.monitor_baud}
upload_speed = ${common.upload_speed}
upload_port = ${common.upload_port}
extra_scripts = ${common.extra_scripts}

[env:sonoff-RU]
platform = ${common.platform}
framework = ${common.framework}
Expand Down

0 comments on commit 766e762

Please sign in to comment.