Enabled auto-compiling both versions

This commit is contained in:
arendst 2017-05-07 15:57:59 +02:00
parent 7ce5b4cba5
commit 09acb77277
1 changed files with 11 additions and 7 deletions

View File

@ -10,16 +10,20 @@
[platformio]
src_dir = sonoff
; Sonoff et al (ESP8266 based)
[env:sonoff]
platform = espressif8266
framework = arduino
board = esp01_1m
; Select one of two board_flash_mode options below
; Sonoff Basic et al. (ESP8266 uses dio or qio)
board_flash_mode = qio
; Sonoff Touch and Sonoff 4CH (ESP8285 uses dout)
; board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
; Sonoff Touch and Sonoff 4CH (ESP8285 based)
[env:sonoff-touch-4ch]
platform = espressif8266
framework = arduino
board = esp01_1m
board_flash_mode = dout
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=512
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON