Skip to content

Instantly share code, notes, and snippets.

@loginov-rocks
Created August 26, 2018 22:23
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 loginov-rocks/c0709f22540c01cf532ec0d311f059e2 to your computer and use it in GitHub Desktop.
Save loginov-rocks/c0709f22540c01cf532ec0d311f059e2 to your computer and use it in GitHub Desktop.
#include <SoftwareSerial.h>
SoftwareSerial SerialBt(2, 3);
void setup()
{
Serial.begin(9600);
SerialBt.begin(9600);
}
void loop()
{
if (SerialBt.available()) {
Serial.write(SerialBt.read());
}
if (Serial.available()) {
SerialBt.write(Serial.read());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment