Created
March 13, 2017 05:23
-
-
Save lf-/28e62a7977cd29fd58330afa3a8a4c13 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> | |
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