-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRFID_Access_Control.ino
More file actions
40 lines (33 loc) · 1.17 KB
/
Copy pathRFID_Access_Control.ino
File metadata and controls
40 lines (33 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* RFID_Access_Control.ino
*
* ESP32-S3 standalone RFID access controller.
* PN532 (hardware SPI) + 16x2 I2C LCD + LittleFS user database.
* Serial link to a Python CLI for admin operations (add/remove/rename/
* list/scan) -- the ESP32 works fully standalone with no PC attached.
*
* Board: ESP32-S3 Dev Module (QFN56, 8MB Octal PSRAM, 40MHz XTAL)
* Arduino IDE settings that matter for THIS project:
* Tools > USB CDC On Boot : Disabled
* Tools > Flash Size : 16MB
* Tools > Partition Scheme : Custom (uses partitions.csv)
* Tools > PSRAM : OPI PSRAM
*
* See README.md for wiring and setup instructions.
*/
#include "SystemController.h"
#include <esp_task_wdt.h>
SystemController controller;
void setup() {
// Register Arduino's loopTask with the Task Watchdog.
// Required before controller.begin(), which may temporarily manage
// TWDT membership during long LittleFS operations.
esp_task_wdt_add(NULL);
controller.begin();
}
void loop() {
// Feed the Task Watchdog once per loop iteration.
esp_task_wdt_reset();
controller.update();
// No delay(): RFIDManager already limits the polling interval.
}