Skip to content

Instantly share code, notes, and snippets.

@arduinothai
Created May 8, 2018 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arduinothai/f589c20d79ce28153b639bc2c46c6fe4 to your computer and use it in GitHub Desktop.
Save arduinothai/f589c20d79ce28153b639bc2c46c6fe4 to your computer and use it in GitHub Desktop.
#include <SoftwareSerial.h>
SoftwareSerial RFID(2, 3); // RX and TX
int i;
void setup()
{
RFID.begin(9600); // start serial to RFID reader
Serial.begin(9600); // start serial to PC
}
void loop()
{
if (RFID.available() > 0)
{
i = RFID.read();
Serial.print(i, DEC);
Serial.print(" ");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment