Skip to content

Instantly share code, notes, and snippets.

@jacobrosenthal
Last active November 28, 2015 16:52
Show Gist options
  • Save jacobrosenthal/3951c6c0354d15923c7a to your computer and use it in GitHub Desktop.
Save jacobrosenthal/3951c6c0354d15923c7a to your computer and use it in GitHub Desktop.
arduino ftdi
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(115200);
// set the data rate for the SoftwareSerial port
mySerial.begin(115200);
}
void loop() { // run over and over
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment