@@ -25,13 +25,11 @@
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MFRC522.h>
|
||||
#include <MFRC522Hack.h>
|
||||
|
||||
constexpr uint8_t RST_PIN = 9; // Configurable, see typical pin layout above
|
||||
constexpr uint8_t SS_PIN = 10; // Configurable, see typical pin layout above
|
||||
|
||||
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.
|
||||
MFRC522Hack mfrc522Hack(&mfrc522); // Create MFRC522Hack instance.
|
||||
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance
|
||||
|
||||
/* Set your new UID here! */
|
||||
byte newUid[] = {0xDE, 0xAD, 0xBE, 0xEF};
|
||||
@@ -94,7 +92,7 @@ void loop() {
|
||||
// }
|
||||
|
||||
// Set new UID
|
||||
if ( mfrc522Hack.MIFARE_SetUid(newUid, (byte)4, true) ) {
|
||||
if ( mfrc522.MIFARE_SetUid(newUid, (byte)4, true) ) {
|
||||
Serial.println(F("Wrote new UID to card."));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user