Added extra example to show serial on lcd display

This commit is contained in:
Henri de Jong
2013-01-27 18:11:28 +01:00
parent d02a05cd22
commit 8bfb620e42
2 changed files with 130 additions and 2 deletions

View File

@@ -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(".");
}
}