Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.