I am trying to implement the Software Serial on Arduino MEGA 2560. I just am executing the example code that is provided in in the Learning section and no data is printing. Obviously, I removed the Serial.write to Serial.print for displaying. This is the code I used.
SoftwareSerial mySerial(50, 51); // RX, TX
// Open serial communications and wait for port to open:
// set the data rate for the SoftwareSerial port
void loop() // run over and over
It should have printed “Hello, world?” but nothing is printing other than “Goodnight moon” Please help me.