Skip to content

Instantly share code, notes, and snippets.

@lf-
Created March 13, 2017 05:23
Show Gist options
  • Save lf-/28e62a7977cd29fd58330afa3a8a4c13 to your computer and use it in GitHub Desktop.
Save lf-/28e62a7977cd29fd58330afa3a8a4c13 to your computer and use it in GitHub Desktop.
#include <SoftwareSerial.h>
const int MD49_RX = 8;
const int MD49_TX = 9;
SoftwareSerial md49(MD49_RX, MD49_TX);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
md49.begin(9600);
}
void loop() {
if (md49.available() > 0) {
Serial.write(md49.read());
}
if (Serial.available() > 0) {
md49.write(Serial.read());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment