Noob MAX7219 and max/msp options?

So basically I'm trying to control an LED matrix via the MAX7219 with MAX/MSP...

The arduino code I'd like to use is LEDControl. The basic start point:

//We always have to include the library
#include "LedControl.h"

/*
 Now we need a LedControl to work with.
 ***** These pin numbers will probably not work with your hardware *****
 pin 12 is connected to the DataIn 
 pin 11 is connected to the CLK 
 pin 10 is connected to LOAD 
 We have only a single MAX72XX.
 */
LedControl lc=LedControl(12,11,10,1);

/* we always wait a bit between updates of the display */
unsigned long delaytime=100;

void setup() {
  /*
   The MAX72XX is in power-saving mode on startup,
   we have to do a wakeup call
   */
  lc.shutdown(0,false);
  /* Set the brightness to a medium values */
  lc.setIntensity(0,8);
  /* and clear the display */
  lc.clearDisplay(0);
}

Then updating single LEDs with this:

lc.setLed(0,0,0,true);

So, having looked through the various Arduino-Max scripts and patches I'm still pretty lost as to how to control the arduino's ouputs like this. Should this code, or something like it, go into the Max patch and then have another bunch of code loaded on the Ardunio which just deals with sending messages through? SO lost!

Any help much appreciated,

Darren

I could have a answer... when I'll know how to connect the max7219 to the arduino board... could you give me a link? a schema?

My project is described here: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1209311743

I want to control a big led matrix with max too... we could share things... :)

This is yer basic wiring for MAX72xx:

http://www.arduino.cc/playground/Main/MAX72XXHardware

The pins on arduino obviously have to match the code you use.

So how far with code have you got?

Daz

thanks a lot for the link I could go further when I'll get my order

talk soon you can contact me via email too..

ciao