From 7786889e907ca62ae8403a42388764c17b61c82f Mon Sep 17 00:00:00 2001 From: arendst Date: Wed, 8 Mar 2017 18:08:47 +0100 Subject: [PATCH] Updated esp8266/esp8285 selection --- platformio.ini | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/platformio.ini b/platformio.ini index c04f7e125..7a5f457de 100644 --- a/platformio.ini +++ b/platformio.ini @@ -13,10 +13,13 @@ src_dir = sonoff [env:sonoff] platform = espressif8266 framework = arduino -; ESP8266 - Sonoff Basic et al. board = esp01_1m -; ESP8285 - Sonoff Touch and Sonoff 4CH -; board = esp8285 -build_flags = -Wl,-Tesp8266.flash.1m64.ld -DMQTT_MAX_PACKET_SIZE=512 -lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON +; 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.1m64.ld -DMQTT_MAX_PACKET_SIZE=512 +lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON \ No newline at end of file