Skip to content

Instantly share code, notes, and snippets.

@wybiral
Created July 12, 2018 22:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wybiral/0c334eb3c06d8a47dd9c53e43712135b to your computer and use it in GitHub Desktop.
Save wybiral/0c334eb3c06d8a47dd9c53e43712135b to your computer and use it in GitHub Desktop.
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
}
void loop() {
byte b;
if (Serial1.available() > 0) {
b = Serial1.read();
Serial.write(b);
}
if (Serial.available() > 0) {
b = Serial.read();
Serial1.write(b);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment