Skip to content

Instantly share code, notes, and snippets.

@e-Gizmo
Last active April 19, 2018 10:45
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 e-Gizmo/fd8be52c32971e311f74 to your computer and use it in GitHub Desktop.
Save e-Gizmo/fd8be52c32971e311f74 to your computer and use it in GitHub Desktop.
#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