Created
February 25, 2018 08:34
-
-
Save griv/07b90507c06587ae7f2ca1bca01ea538 to your computer and use it in GitHub Desktop.
Use Teensy to program ESP8266
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
/** | |
SerialReflector | |
*/ | |
void setup() { | |
Serial.begin(115200); // Serial port for connection to host | |
Serial1.begin(115200); // Serial port for connection to serial device | |
} | |
void loop() { | |
if (Serial1.available()) { | |
Serial.write(Serial1.read()); | |
} | |
if (Serial.available()) { | |
Serial1.write(Serial.read()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment