Guest User

Untitled

a guest
Jul 7th, 2018
110
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. String buff="";
  2.  
  3. void setup() {
  4.   // put your setup code here, to run once:
  5. Serial.begin(300);
  6. }
  7.  
  8. void loop() {
  9.   if(Serial.available())
  10.   {
  11.     while(Serial.available())
  12.     {
  13.       buff += char(Serial.read());
  14.     }
  15.     Serial.print(buff);
  16.     buff = "";
  17.   }
  18. }
RAW Paste Data