PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How To Clear Serial Buffer Arduino Code

Go down

How To Clear Serial Buffer Arduino Code Empty How To Clear Serial Buffer Arduino Code

Post by jamied_uk 11th August 2017, 20:46

Code:
void serialFlush(){  
 while(Serial.available() > 0) {    
 char t = Serial.read();  
 }
}
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum