Download Arduino Mega 2560 Pinout Interrupt Gif. 7:40 dev cu usbmodem 1421 arduino mega or mega 2560. As i have the arduino mega 2560 it comes with 4 serial inputs/outputs, and they have their own serialeventx function (where x = {'',1,2,3}).
I've successfully communicated with a esp8266 module, which sends and receives information once a client is connected to it.
Physical pin ) port pin serial pin interrupt pin pin function. In arduino uno, nano the pins used for interrupt are 2,3 & in mega 2,3. Not the answer you're looking for? The code you make on the software is called sketch which is burned in the software and then transferred to the board through usb cable.