Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SoftwareSerial mySerial(10, 11); // RX, TX
- void setup() {
- Serial.begin(9600);
- while (!Serial) {
- ;
- }
- Serial.println("Goodnight moon!");
- mySerial.begin(115200);
- mySerial.println("Hello, world?");
- }
- void loop() {
- if (mySerial.available()) {
- Serial.write(mySerial.read());
- }
- if (Serial.available()) {
- mySerial.write(Serial.read());
- }
- }
Add Comment
Please, Sign In to add comment