p24_125kHzRFIDKit.ino 512 B

12345678910111213141516171819202122
  1. /*
  2. Demo code for Project 24 - 125 kHz RFID Kit
  3. Read the card and print to the Serial Monitor.
  4. */
  5. #include <SoftwareSerial.h>
  6. SoftwareSerial mySerial(10, 11); // RX, TX
  7. void setup()
  8. {
  9. // Open serial communications and wait for port to open:
  10. Serial.begin(9600);
  11. Serial.println("RFID Reader Start:");
  12. // set the data rate for the SoftwareSerial port
  13. mySerial.begin(9600);
  14. }
  15. void loop() // run over and over
  16. {
  17. if (mySerial.available())
  18. Serial.write(mySerial.read());
  19. }