Browse Source

Using officially suported platformio.ini file

fastled
Xose Pérez 8 years ago
parent
commit
1e9fd98cb8
2 changed files with 158 additions and 30 deletions
  1. +74
    -0
      code/platformio.custom.ini
  2. +84
    -30
      code/platformio.ini

+ 74
- 0
code/platformio.custom.ini View File

@ -0,0 +1,74 @@
#
# PLEASE NOTE:
# This platformio.ini file is not standard and uses a custom feature.
# The "include" option is not supported by the official version.
# Check my PR for this feature here:
# https://github.com/platformio/platformio/pull/790
#
[platformio]
env_default = node-debug
[common]
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
[ota]
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
[env:sonoff-debug]
include = common
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
[env:sonoff-debug-ota]
include = env:sonoff-debug,ota
[env:slampher-debug]
include = common
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
[env:slampher-debug-ota]
include = env:slampher-debug,ota
[env:s20-debug]
include = common
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
[env:s20-debug-ota]
include = env:s20-debug,ota
[env:node-debug]
include = common
board = nodemcuv2
build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial
[env:node-debug-ota]
include = env:node-debug,ota
[env:ac-device]
topic = /home/cellar/airconditioner/ip
include = env:s20-debug-ota
[env:washer-device]
topic = /home/cellar/washer/ip
include = env:sonoff-debug-ota
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
[env:studio-lamp-device]
topic = /home/studio/lamp/ip
include = env:sonoff-debug-ota
[env:living-lamp-device]
topic = /home/living/lamp/ip
include = env:sonoff-debug-ota

+ 84
- 30
code/platformio.ini View File

@ -1,74 +1,128 @@
#
# PLEASE NOTE:
# This platformio.ini file is not standard and uses a custom feature.
# The "include" option is not supported by the official version.
# Check my PR for this feature here:
# https://github.com/platformio/platformio/pull/790
#
[platformio] [platformio]
env_default = node-debug env_default = node-debug
[common]
[env:sonoff-debug]
platform = espressif8266 platform = espressif8266
framework = arduino framework = arduino
lib_install = 19,44,64,89,549,727 lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py extra_script = pio_hooks.py
[ota]
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
[env:sonoff-debug]
include = common
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
[env:sonoff-debug-ota] [env:sonoff-debug-ota]
include = env:sonoff-debug,ota
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
[env:slampher-debug] [env:slampher-debug]
include = common
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
[env:slampher-debug-ota] [env:slampher-debug-ota]
include = env:slampher-debug,ota
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSLAMPHER
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
[env:s20-debug] [env:s20-debug]
include = common
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20 build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
[env:s20-debug-ota] [env:s20-debug-ota]
include = env:s20-debug,ota
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
[env:node-debug] [env:node-debug]
include = common
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = nodemcuv2 board = nodemcuv2
build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial
[env:node-debug-ota] [env:node-debug-ota]
include = env:node-debug,ota
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = nodemcuv2
build_flags = -DNODEMCUV2 -DDEBUG_PORT=Serial
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
[env:ac-device] [env:ac-device]
topic = /home/cellar/airconditioner/ip topic = /home/cellar/airconditioner/ip
include = env:s20-debug-ota
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DS20
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
[env:washer-device] [env:washer-device]
topic = /home/cellar/washer/ip topic = /home/cellar/washer/ip
include = env:sonoff-debug-ota
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1 build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF -DENABLE_EMON=1 -DENABLE_DHT=1
[env:studio-lamp-device] [env:studio-lamp-device]
topic = /home/studio/lamp/ip topic = /home/studio/lamp/ip
include = env:sonoff-debug-ota
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266
[env:living-lamp-device] [env:living-lamp-device]
topic = /home/living/lamp/ip topic = /home/living/lamp/ip
include = env:sonoff-debug-ota
platform = espressif8266
framework = arduino
lib_install = 19,44,64,89,549,727
extra_script = pio_hooks.py
board = esp01_1m
build_flags = -Wl,-Tesp8266.flash.1m256.ld -DDEBUG_PORT=Serial -DSONOFF
upload_speed = 115200
upload_port = "192.168.4.1"
upload_flags = --auth=fibonacci --port 8266

Loading…
Cancel
Save