Merge pull request #70 from UnKnoWn-Consortium/patch-3
Update ChangeUID.ino
This commit is contained in:
@@ -23,15 +23,17 @@
|
||||
http://mac86project.altervista.org/
|
||||
|
||||
----------------------------------------------------------------------------- Nicola Coppola
|
||||
* Pin layout should be as follows:
|
||||
* Signal Pin Pin Pin
|
||||
* Arduino Uno Arduino Mega MFRC522 board
|
||||
* ------------------------------------------------------------
|
||||
* Reset 9 5 RST
|
||||
* SPI SS 10 53 SDA
|
||||
* SPI MOSI 11 51 MOSI
|
||||
* SPI MISO 12 50 MISO
|
||||
* SPI SCK 13 52 SCK
|
||||
* Typical pin layout used:
|
||||
* -----------------------------------------------------------------------------------------
|
||||
* MFRC522 Arduino Arduino Arduino Arduino Arduino
|
||||
* Reader/PCD Uno Mega Nano v3 Leonardo/Micro Pro Micro
|
||||
* Signal Pin Pin Pin Pin Pin Pin
|
||||
* -----------------------------------------------------------------------------------------
|
||||
* RST/Reset RST 9 5 D9 RESET/ICSP-5 RST
|
||||
* SPI SS SDA(SS) 10 53 D10 10 10
|
||||
* SPI MOSI MOSI 11 / ICSP-4 51 D11 ICSP-4 16
|
||||
* SPI MISO MISO 12 / ICSP-1 50 D12 ICSP-1 14
|
||||
* SPI SCK SCK 13 / ICSP-3 52 D13 ICSP-3 15
|
||||
*
|
||||
* The reader can be found on eBay for around 5 dollars. Search for "mf-rc522" on ebay.com.
|
||||
*/
|
||||
@@ -49,6 +51,7 @@ MFRC522::MIFARE_Key key;
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600); // Initialize serial communications with the PC
|
||||
while (!Serial); // Do nothing if no serial port is opened (added for Arduinos based on ATMEGA32U4)
|
||||
SPI.begin(); // Init SPI bus
|
||||
mfrc522.PCD_Init(); // Init MFRC522 card
|
||||
Serial.println("Warning: this example overwrites the UID of your UID changeable card, use with care!");
|
||||
|
||||
Reference in New Issue
Block a user