47+ Arduino Mega Spi Pinout Pictures. Typically there are three lines common to all the devices: With an spi connection there is always one master device (usually a microcontroller) which controls the peripheral devices.
As described earlier that the arduino mega is based on the atmega 2560 the pinout of the atmega 2560 microcontroller chip is shown in the following figure 50, 51, 52 (and 53 as cs). The arduino software (ide) includes a wire library to simplify.
1.3.1 input and output spi:
These pins support spi communication using the spi library. Each pin comes with a specific function associated with it. 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. 1.2 arduino mega 2560 schematic diagram (scrollable).