mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-08 02:54:24 +01:00
This reverts commit df9835efafd13685251749bc210c0b96a18a96a5, reversing changes made to ec45af8bfa9222a807c075dd1db4b5aa798bba03. Conflicts: hardware/arduino/variants/mega/pins_arduino.h libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino
22 lines
415 B
C++
22 lines
415 B
C++
#include <SoftwareSerial.h>
|
|
|
|
SoftwareSerial mySerial(2, 3);
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(57600);
|
|
Serial.println("Goodnight moon!");
|
|
|
|
// set the data rate for the SoftwareSerial port
|
|
mySerial.begin(4800);
|
|
mySerial.println("Hello, world?");
|
|
}
|
|
|
|
void loop() // run over and over
|
|
{
|
|
if (mySerial.available())
|
|
Serial.write(mySerial.read());
|
|
if (Serial.available())
|
|
mySerial.write(Serial.read());
|
|
}
|