// A test for the forum: https://forum.arduino.cc/t/software-serial-reading-1-byte/1221177/
// This Wokwi project: https://wokwi.com/projects/389118916901984257
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3, false); // RX, TX,
void setup()
{
// "mySerial" at pin 2 and 3.
// The RX and TX lines are idle high.
// Hopefully there are pullup resistors.
mySerial.begin(4800);
delay(5); // I would prefer 1000 ms
// For a test, send 0xFF
mySerial.print("\xFF");
}
void loop()
{
delay(10);
}