Created
July 12, 2018 22:31
-
-
Save wybiral/0c334eb3c06d8a47dd9c53e43712135b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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