Serial 2 Mega 2560


just question... when using esp or bluetooth modules on uno, of time use softwareserial.
but on mega or due, have more serial ports.
how read/write info to, let's say, nrf via these ports? omitting softwareserial?

most of time, use softwareserial on these boards, serial ports sitting there, tumbling thumbs...

you  use them serial, except instead of serial write serial1, serial2, or serial3 (depending on of mega's serial ports device connected to). should use hardware serial instead of software serial if possible.

see:
https://www.arduino.cc/reference/en/language/functions/communication/serial/


Arduino Forum > Using Arduino > Microcontrollers > Serial 2 Mega 2560


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???