Created
May 8, 2018 08:01
-
-
Save arduinothai/f589c20d79ce28153b639bc2c46c6fe4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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