Skip to content

Instantly share code, notes, and snippets.

@dakrawczyk
Created July 30, 2015 18:59
Show Gist options
  • Save dakrawczyk/f36d07af39fa6c231dec to your computer and use it in GitHub Desktop.
Save dakrawczyk/f36d07af39fa6c231dec to your computer and use it in GitHub Desktop.
#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