diff --git a/platformio.ini b/platformio.ini index 2911d9be0..4dddb2d6d 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 \ No newline at end of file +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