Last active
April 19, 2018 10:45
-
-
Save e-Gizmo/fd8be52c32971e311f74 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 mySerial(8, 9); | |
void setup() | |
{ | |
Serial.begin(9600); | |
Serial.println("Ready for configuration..."); | |
mySerial.begin(9600); | |
} | |
char a=0; | |
char b=0; | |
void loop() | |
{ | |
mySerial.listen(); | |
if (mySerial.available()){ | |
a = mySerial.read(); | |
Serial.print(a); | |
} | |
if (Serial.available()){ | |
b = Serial.read(); | |
Serial.print(b); | |
mySerial.print(b); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment