arduino mega 2560

Hi, I'm still new in arduino so could any hellp me to find out which pins are Dln, Clk and Load(CS) in my arduino mega 2560. here is scematic: http://playground.arduino.cc/Main/MAX72XXHardware#SelectRSet thanks for help!

Is this an SPI question?

http://www.gammon.com.au/spi

I just want to connect max7219 to arduino mega 2560 like firs picture: http://playground.arduino.cc/Main/MAX72XXHardware#SelectRSet

ammygo: I just want to connect max7219 to arduino mega 2560 like firs picture: http://playground.arduino.cc/Main/MAX72XXHardware#SelectRSet

Personally, I have used the following library:

http://playground.arduino.cc//Main/LedControl

You can use any data pins to control a 7219 chain. You can set up multiple chains on different sets of pins if it makes sense to do so. This is a software SPI interface and allows you to save the hardware SPI interface for other peripherals. (note that the MAX7219 isn't technically SPI compatible, the MAX7221 is. But this is technical nitpicking, the MAX7219 works with SPI, just not within spec). A bit of sample code from that screen:

/* We start by including the library */
#include "LedControl.h"

/* 
 * Now we create a new LedControl. 
 * We use pins 12,11 and 10 on the Arduino for the SPI interface
 * Pin 12 is connected to the DATA IN-pin of the first MAX7221
 * Pin 11 is connected to the CLK-pin of the first MAX7221
 * Pin 10 is connected to the LOAD(/CS)-pin of the first MAX7221    
 * There will only be a single MAX7221 attached to the arduino 
 */
LedControl lc1=LedControl(12,11,10,1);

On the Mega R3 the SPI hardware pins are the following, but I wouldn't bother to use them:

SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS). These pins support SPI communication using the SPI library. The SPI pins are also broken out on the ICSP header, which is physically compatible with the Uno, Duemilanove and Diecimila.

http://arduino.cc/en/Main/arduinoBoardMega2560