Added extra example to show serial on lcd display
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* MISO: Pin 12 / ICSP-1
|
||||
* SCK: Pin 13 / ISCP-3
|
||||
* SS: Pin 10
|
||||
* RST: Pin 5
|
||||
* RST: Pin 9
|
||||
*
|
||||
* Script is based on the script of Miguel Balboa.
|
||||
* New cardnumber is printed when card has changed. Only a dot is printed
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <RFID.h>
|
||||
|
||||
#define SS_PIN 10
|
||||
#define RST_PIN 5
|
||||
#define RST_PIN 9
|
||||
|
||||
RFID rfid(SS_PIN, RST_PIN);
|
||||
|
||||
@@ -50,6 +50,7 @@ void loop()
|
||||
&& rfid.serNum[3] != serNum3
|
||||
&& rfid.serNum[4] != serNum4
|
||||
) {
|
||||
/* With a new cardnumber, show it. */
|
||||
Serial.println(" ");
|
||||
Serial.println("Card found");
|
||||
serNum0 = rfid.serNum[0];
|
||||
@@ -84,6 +85,7 @@ void loop()
|
||||
Serial.print(rfid.serNum[4],HEX);
|
||||
Serial.println(" ");
|
||||
} else {
|
||||
/* If we have the same ID, just write a dot. */
|
||||
Serial.print(".");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user