Download Arduino Mega Spi Pinout Pics. With an spi connection there is always one master device (usually a microcontroller) which controls the peripheral devices. All analog pins can be used as digital i/o pins.

How To Use Arduino Mega 2560 As Arduino Isp 3 Steps Instructables
How To Use Arduino Mega 2560 As Arduino Isp 3 Steps Instructables from content.instructables.com
These pins are used for serial communication with spi protocol for communication between 2 or more devices. The spi pins are also broken out on the icsp header, which is physically compatible with note that these pins are not in the same location as the twi pins on the duemilanove or diecimila. The arduino mega can be powered via the usb connection or with an external power supply.

The spi pins are also broken out on the icsp header, which is physically compatible with the the mega 2560 also supports twi and spi communication.

These pins support spi communication using the spi library. The mega2560 has 16 analog inputs, each of which. Spi enable bit must be set to start communication with. The spi pins are also broken out on the icsp header, which is physically.