Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* RFID ID12
- */
- char val = 0; // variable to store the data from the serial port
- void setup() {
- Serial.begin(9600); // connect to the serial port
- }
- void loop () {
- // read the serial port
- if(Serial.available() > 0) {
- val = Serial.read();
- Serial.print(val, BYTE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement