Created
July 30, 2015 18:59
-
-
Save dakrawczyk/f36d07af39fa6c231dec to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Serial1(5,10); //(Rx,Tx) | |
void setup() | |
{ | |
Serial1.begin(9600); | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
if (Serial1.available()) | |
{ | |
//This will print out whatever is sent, as it receives it. | |
Serial.print(Serial1.read()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment