Skip to content

Instantly share code, notes, and snippets.

@chrwei
Created January 10, 2016 19:53
Show Gist options
  • 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