Hello,
my RS485-reader on a M5StamPLC worked fine with the standard Arduino Libraries on Serial1. If I use M5StamPLC-Library like #include <M5StamPLC.h> and if I use the M5StamPLC.begin(); then Serial1 didn‘t work anymore.
void setup() {
M5StamPLC.begin(); <— Didn‘t work. Serial1.available never find an input
Serial1.begin(38400, SERIAL_8N1, RX_PIN, TX_PIN);
}
void loop() {
while (Serial1. available) {
char incomingByte = Serial1.read();
…
}
}
I can‘t find the init-calls for RS485 in M5StamPLC and not in M5Unified.
Who can help?