Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iotguider/b5c6b5d73f71bb3948217ed8aa8edf09 to your computer and use it in GitHub Desktop.
Save iotguider/b5c6b5d73f71bb3948217ed8aa8edf09 to your computer and use it in GitHub Desktop.
Using SoftwareSerial in Arduino for Serial Communication
#include<SoftwareSerial.h> //Included SoftwareSerial Library
//Started mySerial SoftwareSerial
SoftwareSerial mySerial(10,11);
void setup() {
//Serial mySerial Begin at 9600 Baud
mySerial.begin(9600);
}
void loop() {
//Write '123' to mySerial
mySerial.write(123);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment