How To Clear Serial Buffer Arduino Code

View previous topic View next topic Go down

How To Clear Serial Buffer Arduino Code

Post by jamied_uk on 11th August 2017, 20:46

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

Posts : 2243
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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