Arduino Forum
Clearing serial buffer solved
Projects Discussion and Showcase
Education and Teaching
zoomx
May 23, 2018, 10:03am
23
void serialFlush(){
while(Serial.available() > 0) { //while there are characters in the serial buffer, because Serial.available is >0*
char t = Serial.read(); // get one character*
}*
*} *
show post in topic
Related Topics
Topic
Replies
Views
Activity
Serial buffer?
Programming Questions
8
1458
May 5, 2021
clear Serial Buffer
Programming Questions
21
25237
May 5, 2021
Serial port flush fuction.
Suggestions for the Arduino Project
15
10643
May 6, 2021
Looking for flush (well, questions about it anyway)
Programming Questions
29
4317
May 5, 2021
Arduino 1.0 with serial.flush();
Programming Questions
14
7986
May 5, 2021