View Arduino Mega 2560 Pinout Interrupt Images. Arduino mega 2560 can be programmed using arduino software called ide which supports c programming. The main reason behind this is the additional features that are inbuilt with this board.
7:40 dev cu usbmodem 1421 arduino mega or mega 2560. 7:42 unsigned lor byte last ch int input. The atmega2560p comes with builtin bootloader which makes it very easy to flash the board with your code.
Google and found that pin2 & 3 were really int0 & int1.
As far as other hardware on the mega goes, it also touts four serial ports for general attachments, a usb connection (with a dedicated atmega16u2 processor for interfacing with your computer), a reset. Google and found that pin2 & 3 were really int0 & int1. Interrupt 4 in the reference means pass 4 to attachinterrupt, which unfortunately does not correspond to int4 in the atmega chip reference * the digitalpintopci* macros were originally part of the softwareserial library, which explains this comment in variants/mega/pins_arduino.h. 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.