I am new to programming with the Arduino. I am trying to set up basic serial communication in the IDE but I keep receiving the error, "Serial 2 was not declared in this scope".
This is my code (very basic):
You need one of the two at the very bottom of the list in your screen shot, I always use the programming port which is the one close to the power connector.