diff --git a/.gitignore b/.gitignore index b6ff475..2132e1c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ .vscode/ipch include/secrets.h .DS_Store -upload_params.ini \ No newline at end of file +upload_params.ini +platformio.ini \ No newline at end of file diff --git a/platformio.dist.ini b/platformio.dist.ini new file mode 100644 index 0000000..11b2ca1 --- /dev/null +++ b/platformio.dist.ini @@ -0,0 +1,47 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[platformio] +extra_configs = upload_params.ini + +[env:esp32-evb] +platform = espressif32 +board = esp32-evb +framework = arduino +build_flags = -DBOARD1 -DRELAY1 -DWIFI -DWEB_SERVER -DNET_FAIL_SAFE -DWEB_OTA_UPDATE -DLOCAL_ACL -DLOCAL_ACL_API -DLATCH_DOOR +lib_deps = + ottowinter/ESPAsyncWebServer-esphome@^3.0.0 + ayushsharma82/WebSerial@^1.4.0 + ayushsharma82/AsyncElegantOTA@^2.2.7 + bblanchon/ArduinoJson@^6.21.2 + +[env:mcu-esp32s] +platform = espressif32 +framework = arduino +board = nodemcu-32s +build_flags = -DBOARD2 -DBUZZER -DRELAY1 -DWIFI -DWEB_SERVER -DNET_FAIL_SAFE -DWEB_OTA_UPDATE -DLOCAL_ACL -DLOCAL_ACL_API -DLATCH_DOOR +lib_deps = + ottowinter/ESPAsyncWebServer-esphome@^3.0.0 + ayushsharma82/WebSerial@^1.4.0 + ayushsharma82/AsyncElegantOTA@^2.2.7 + bblanchon/ArduinoJson@^6.21.2 + +[env:mcu-esp32s-ota] +platform = espressif32 +framework = arduino +board = nodemcu-32s +build_flags = -DBOARD2 -DBUZZER -DRELAY1 -DWIFI -DWEB_SERVER -DNET_FAIL_SAFE -DWEB_OTA_UPDATE -DLOCAL_ACL -DLOCAL_ACL_API -DLATCH_DOOR +lib_deps = + ottowinter/ESPAsyncWebServer-esphome@^3.0.0 + ayushsharma82/WebSerial@^1.4.0 + ayushsharma82/AsyncElegantOTA@^2.2.7 + bblanchon/ArduinoJson@^6.21.2 +extra_scripts = platformio_upload.py +