This commit is contained in:
2026-06-16 01:02:00 +02:00
commit d26fb721f9
11 changed files with 343 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <SPI.h>
#include <MFRC522.h>
class RFIDReader {
public:
RFIDReader(int ssPin, int rstPin);
void begin();
bool check();
void printUID() const;
const byte* getUID() const;
byte getUIDSize() const;
private:
MFRC522 _rfid;
MFRC522::MIFARE_Key _key;
};