well...it should work, yes? I've been hacking away at this all day and can't even get the simple test code to work:
#include <AFSoftSerial.h>
AFSoftSerial mySerial = AFSoftSerial(3, 2);
void setup() {
pinMode(13, OUTPUT);
Serial.begin(9600);
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
mySerial.println("Hello, world?");
}
void loop() // run over and over again
{
if (mySerial.available()) {
Serial.print((char)mySerial.read());
}
if (Serial.available()) {
mySerial.print((char)Serial.read());
}
}
I get "Goodnight moon!" (a lovely book, btw), but no "Hello world?". This example should give me that, right? Figure if I can't get this to work, I'm not going to be a happy camper. Again, this is for an Arduino Pro Mini:
Perhaps AFSoftSerial can't run on this board?
Any ideas on what to try next?
Thanks!!
David