Skip to content

Instantly share code, notes, and snippets.

@eraclitux
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save eraclitux/d89d9cb87491bb129910 to your computer and use it in GitHub Desktop.

Select an option

Save eraclitux/d89d9cb87491bb129910 to your computer and use it in GitHub Desktop.
Arduino sample code that sends back received chars.
/*
Arduino sample code that sends back received chars
*/
int rbyte=0;
void setup () {
Serial.begin(9600);
}
void loop () {
if (Serial.available() > 0) {
rbyte=Serial.read();
Serial.write(rbyte);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment