Advertisement
Guest User

Untitled

a guest
Jul 7th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement