diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..5dac9f52f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.pioenvs +.piolibdeps +.clang_complete +.gcc-flags.json diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 000000000..fa09a40a9 --- /dev/null +++ b/platformio.ini @@ -0,0 +1,22 @@ +; 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 +; 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=400 + +lib_deps = PubSubClient, NeoPixelBus