Same program from Arduino Uno R4 Wifi on Arduino Mega 2560

The fact that the wires connected there doesn't mean that connection used a Serial2 port.

I think it was due the fact, that you not quite understand what are you doing, so you edition of the code was incorrect. It would be useful if you show the code after your editing.

No, the Serial and SoftwareSerial classes does it itself, so you don't need this in the code

Note that if you need I2C, that is not on A4 and A5 on a Mega.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.