Hoping someone can help me out in my conundrum here...
I currently am testing the SoftwareSerial library out to understand how I may use it in my project.
I have a wire running from pin 6 to pin 9, so that the TX talks straight to the RX.
I have written the following:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(6,9); //RX = 6 TX = 9
void setup() {
Serial.begin(1200);
mySerial.begin(1200);
}
void loop() {
mySerial.write('F');
delay(100); // attempting to allow time between write and read commands
while (mySerial.available()>0) {
Serial.println(mySerial.read());
}
}
The whole point is just to see 'F' return in the Serial Monitor.
The output, unfortunately, is absolutely nothing! If I omit the while(mySerial.available>0)
I just get -1 's down the lines of the Serial Monitor.
Thank you in advance!