- Wed Feb 27, 2013 10:58 pm
#156308
HI,
I tried the example listed for softwareserial on the latest arduino 1.0.3. and can not get it to work. I have a arduino uno r3 board. Here is the code copied from the arduoino example which does not work. I only get "goodnight moon". on the arduino terminal screen.
Thank you.
I tried the example listed for softwareserial on the latest arduino 1.0.3. and can not get it to work. I have a arduino uno r3 board. Here is the code copied from the arduoino example which does not work. I only get "goodnight moon". on the arduino terminal screen.
Thank you.
Code: Select all
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(57600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
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());
}