From a2c798a90b5c50383ea50cc3bef5a187961b8ffb Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Mon, 30 Oct 2023 16:13:07 +0100 Subject: [PATCH] basic reader --- platformio.ini | 30 ++++-------------------------- src/main.cpp | 4 +--- 2 files changed, 5 insertions(+), 29 deletions(-) diff --git a/platformio.ini b/platformio.ini index 11b2ca1..357eae0 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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 diff --git a/src/main.cpp b/src/main.cpp index 0497b6d..43947dd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,9 +58,7 @@ void setup() { attachInterrupt(digitalPinToInterrupt(DATA1_PIN), handleData1Interrupt, FALLING); #ifdef RELAY1 - #ifdef SERIAL_DEBUG - Serial.println("Enabling Relay: Locking Door"); - #endif + Serial.println("Enabling Relay: Locking Door"); lockDoor(); #endif