Skip to content

Instantly share code, notes, and snippets.

@chrwei
Created January 10, 2016 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrwei/175c15d4fc881005dd33 to your computer and use it in GitHub Desktop.
Save chrwei/175c15d4fc881005dd33 to your computer and use it in GitHub Desktop.
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
}
void loop() {
if(Serial.available()) {
Serial1.write(Serial.read());
}
if(Serial1.available()) {
Serial.write(Serial1.read());
}
delay(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment