2017-01-28 15:44:00 +00:00
|
|
|
; PlatformIO Project Configuration File
|
|
|
|
;
|
|
|
|
; Build options: build flags, source filter, extra scripting
|
|
|
|
; Upload options: custom port, speed and extra flags
|
|
|
|
; Library options: dependencies, extra library storages
|
|
|
|
;
|
|
|
|
; Please visit documentation for the other options and examples
|
|
|
|
; http://docs.platformio.org/en/stable/projectconf.html
|
|
|
|
|
|
|
|
[platformio]
|
|
|
|
src_dir = sonoff
|
|
|
|
|
|
|
|
[env:sonoff]
|
|
|
|
platform = espressif8266
|
|
|
|
framework = arduino
|
|
|
|
board = esp01_1m
|
|
|
|
|
2017-03-08 17:08:47 +00:00
|
|
|
; 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
|