diff --git a/platformio.ini b/platformio.ini index c04f7e125681..7a5f457de179 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