| 12345678910111213141516171819202122 |
- /*
- Demo code for Project 24 - 125 kHz RFID Kit
- Read the card and print to the Serial Monitor.
- */
- #include <SoftwareSerial.h>
- SoftwareSerial mySerial(10, 11); // RX, TX
- void setup()
- {
- // Open serial communications and wait for port to open:
- Serial.begin(9600);
- Serial.println("RFID Reader Start:");
- // set the data rate for the SoftwareSerial port
- mySerial.begin(9600);
- }
- void loop() // run over and over
- {
- if (mySerial.available())
- Serial.write(mySerial.read());
- }
|