basic reader
This commit is contained in:
parent
c55bd0f87c
commit
a2c798a90b
2 changed files with 5 additions and 29 deletions
|
@ -8,40 +8,18 @@
|
||||||
; Please visit documentation for the other options and examples
|
; Please visit documentation for the other options and examples
|
||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[platformio]
|
|
||||||
extra_configs = upload_params.ini
|
|
||||||
|
|
||||||
[env:esp32-evb]
|
[env:esp32-evb]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = esp32-evb
|
board = esp32-evb
|
||||||
framework = arduino
|
framework = arduino
|
||||||
build_flags = -DBOARD1 -DRELAY1 -DWIFI -DWEB_SERVER -DNET_FAIL_SAFE -DWEB_OTA_UPDATE -DLOCAL_ACL -DLOCAL_ACL_API -DLATCH_DOOR
|
build_flags = -DBOARD1 -DRELAY1
|
||||||
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]
|
[env:mcu-esp32s]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
framework = arduino
|
framework = arduino
|
||||||
board = nodemcu-32s
|
board = nodemcu-32s
|
||||||
build_flags = -DBOARD2 -DBUZZER -DRELAY1 -DWIFI -DWEB_SERVER -DNET_FAIL_SAFE -DWEB_OTA_UPDATE -DLOCAL_ACL -DLOCAL_ACL_API -DLATCH_DOOR
|
build_flags = -DBOARD2 -DBUZZER -DRELAY
|
||||||
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
|
|
||||||
|
|
||||||
|
|
|
@ -58,9 +58,7 @@ void setup() {
|
||||||
attachInterrupt(digitalPinToInterrupt(DATA1_PIN), handleData1Interrupt, FALLING);
|
attachInterrupt(digitalPinToInterrupt(DATA1_PIN), handleData1Interrupt, FALLING);
|
||||||
|
|
||||||
#ifdef RELAY1
|
#ifdef RELAY1
|
||||||
#ifdef SERIAL_DEBUG
|
|
||||||
Serial.println("Enabling Relay: Locking Door");
|
Serial.println("Enabling Relay: Locking Door");
|
||||||
#endif
|
|
||||||
lockDoor();
|
lockDoor();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue