Skip to content

Instantly share code, notes, and snippets.

View ingamedeo's full-sized avatar

Amedeo Baragiola ingamedeo

View GitHub Profile
@ingamedeo
ingamedeo / serial_com.ino
Last active August 29, 2015 14:02
Arduino Serial Com Wrapper
int pinNum = 0;
unsigned long tempMillis;
int count = 0;
void flush() {
while(Serial.available() > 0) { //Consume all other data remaining
Serial.read();
}
}