Created
October 27, 2017 16:47
-
-
Save esmarr58/85460ec8240b68ae76ca526d2838ebb2 to your computer and use it in GitHub Desktop.
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
#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