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
1460
May 5, 2021
clear Serial Buffer
Programming Questions
21
25239
May 5, 2021
Serial port flush fuction.
Suggestions for the Arduino Project
15
10645
May 6, 2021
Looking for flush (well, questions about it anyway)
Programming Questions
29
4318
May 5, 2021
Arduino 1.0 with serial.flush();
Programming Questions
14
7988
May 5, 2021