RuiViana

TesteRCB

Oct 31st, 2016
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. String CPF = "";
  3. char buffer[]={0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x20,0x20,0x20,0x20,0x20,0x20,0x20};
  4. //----------------------
  5. void setup()
  6. {
  7.   Serial.begin(9600);
  8. }
  9. //----------------------
  10. void loop()
  11. {
  12.   for (byte i = 0; i < 16; i++)
  13.   {
  14.     //Serial.print(char(buffer[i])); //Mostra os dados do cartão RFID via serial
  15.     CPF += char(buffer[i]);
  16.    
  17.   }
  18.    Serial.println(CPF);
  19.    delay(300);
  20.    CPF = "";
  21. }
RAW Paste Data