Skip to content

Instantly share code, notes, and snippets.

@griv
Created February 25, 2018 08:34
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 griv/07b90507c06587ae7f2ca1bca01ea538 to your computer and use it in GitHub Desktop.
Save griv/07b90507c06587ae7f2ca1bca01ea538 to your computer and use it in GitHub Desktop.
Use Teensy to program ESP8266
/**
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