mirror of
https://github.com/sweidac/kidsbox.git
synced 2026-10-28 06:52:57 +01:00
Play a configured file when rfid-tag is placed on the reader.
This commit is contained in:
1 parent
dffa2e6205
commit
5007de4456
8 files changed
+84
-9
No files matched your search
@@ -19,10 +19,10 @@ static char* getLastTagId() {
|
||||
|
||||
RFIDInterface::RFIDInterface() {
|
||||
startConfig = (rc522_start_args_t){
|
||||
.miso_io = 26,
|
||||
.mosi_io = 25,
|
||||
.miso_io = 12,
|
||||
.mosi_io = 13,
|
||||
.sck_io = 23,
|
||||
.sda_io = 5,
|
||||
.sda_io = 18,
|
||||
.callback = [](uint8_t* sn) { // serial number is always 5 bytes long
|
||||
ESP_LOGI(TAG, "Tag: %#x %#x %#x %#x %#x",
|
||||
sn[0], sn[1], sn[2], sn[3], sn[4]
|
||||
|
||||
Reference in new issue
Block a user