Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. /* RFID ID12
  2. */
  3.  
  4. char val = 0; // variable to store the data from the serial port
  5.  
  6. void setup() {
  7. Serial.begin(9600); // connect to the serial port
  8. }
  9.  
  10. void loop () {
  11. // read the serial port
  12.  
  13. if(Serial.available() > 0) {
  14. val = Serial.read();
  15. Serial.print(val, BYTE);
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement