
for Sonoff Basic, ESP-01:

Generic ESP8266 Module
Flash MOde: DIO
Flash Size: 1M (128k SPIFFS)


Sonoff Touch

As the Sonoff Touch is based on the ESP8285 using Flash Mode DOUT you will have to make some changes to the proposed Arduino IDE settings as follows:

    Tools → Board → Generic ESP8285 Module
    Flash Size: 1M (128K SPIFFS)