Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created October 27, 2017 16:47
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 esmarr58/85460ec8240b68ae76ca526d2838ebb2 to your computer and use it in GitHub Desktop.
Save esmarr58/85460ec8240b68ae76ca526d2838ebb2 to your computer and use it in GitHub Desktop.
#include <SoftwareSerial.h>
SoftwareSerial BT1(3, 2); // RX | TX
char txt;
void setup()
{ Serial.begin(9600);
BT1.begin(115200);
}
void loop()
{if (Serial.available())
{txt = Serial.read();
BT1.print(txt);
}
if (BT1.available())
{txt = BT1.read();
Serial.print(txt);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment