basic reader

This commit is contained in:
Matthew Frost 2023-10-30 16:13:07 +01:00
parent c55bd0f87c
commit a2c798a90b
2 changed files with 5 additions and 29 deletions

View file

@ -8,40 +8,18 @@
; 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
build_flags = -DBOARD1 -DRELAY1
[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
build_flags = -DBOARD2 -DBUZZER -DRELAY
[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

View file

@ -58,9 +58,7 @@ void setup() {
attachInterrupt(digitalPinToInterrupt(DATA1_PIN), handleData1Interrupt, FALLING);
#ifdef RELAY1
#ifdef SERIAL_DEBUG
Serial.println("Enabling Relay: Locking Door");
#endif
lockDoor();
#endif