I'm debugging a project which includes SoftwareSerial. I'm not convinced the serial connection behaves as expected, so I came up with the following simple test:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10,11); // RX, TX
void setup() {
Serial.begin(4800);
// starting the software serial
mySerial.begin(4800);
}
void loop() {
for (int i=0; i <= 10; i++){
delay(10);
mySerial.write(i);
}
}
I connected pin 11 to pin 1 (arduino Uno), hence forwarding the data of the software serial connection via the default (hardware) serial connection to my computer. But no data is coming through.
Am I missing something?