Go Down

Topic: using the multiple serial ports on mega (Read 956 times) previous topic - next topic


Hi, I'm trying to use the multiple serial ports on the arduino mega.  I see there is some kind of code that makes use of this already here:
but, when I attempt to use any Serial1 command I can an error that it was not declared.  I just downloaded the latest arduino environment.  How can I get this to work? 

Also the documentation seems a little brief, I'm assuming Serial = the 1st serial port located on pins 0,1.  Serial1 is the next serial port?


Have you selected "Arduino Mega" from the Tools > Board menu?


YES! Thank you, that was it.  Can't believe I forgot that.  Cheers!

Go Up