Merge pull request #69 from UnKnoWn-Consortium/patch-2
Update DumpInfo.ino
This commit is contained in:
@@ -26,16 +26,16 @@
|
||||
* reading distance until complete.
|
||||
*
|
||||
* Typical pin layout used:
|
||||
* ------------------------------------------------------------
|
||||
* MFRC522 Arduino Arduino Arduino
|
||||
* Reader/PCD Uno Mega Nano v3
|
||||
* Signal Pin Pin Pin Pin
|
||||
* ------------------------------------------------------------
|
||||
* RST/Reset RST 9 5 D9
|
||||
* SPI SS SDA(SS) 10 53 D10
|
||||
* SPI MOSI MOSI 11 / ICSP-4 51 D11
|
||||
* SPI MISO MISO 12 / ICSP-1 50 D12
|
||||
* SPI SCK SCK 13 / ICSP-3 52 D13
|
||||
* -----------------------------------------------------------------------------------------
|
||||
* 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
|
||||
*/
|
||||
|
||||
#include <SPI.h>
|
||||
@@ -48,6 +48,7 @@ MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance
|
||||
|
||||
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
|
||||
ShowReaderDetails(); // Show details of PCD - MFRC522 Card Reader details
|
||||
@@ -85,4 +86,4 @@ void ShowReaderDetails() {
|
||||
if ((v == 0x00) || (v == 0xFF)) {
|
||||
Serial.println("WARNING: Communication failure, is the MFRC522 properly connected?");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user