Last active
February 1, 2019 15:20
-
-
Save iotguider/b5c6b5d73f71bb3948217ed8aa8edf09 to your computer and use it in GitHub Desktop.
Using SoftwareSerial in Arduino for Serial Communication
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> //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