@ michaelo - Hi Mike, yes it’s fairly easy to set up i just use the following driver - http://www.tinyclr.com/codeshare/entry/368
Then change:
public Music(int socketNumber)
{
// This finds the Socket instance from the user-specified socket number.
// This will generate user-friendly error messages if the socket is invalid.
// If there is more than one socket on this module, then instead of "null" for the last parameter,
// put text that identifies the socket to the user (e.g. "S" if there is a socket type S)
Socket socket = Socket.GetSocket(socketNumber, true, this, null);
socket.EnsureTypeIsSupported(new char[] { 'S' }, this);
// Set up our SPI
m_dataConfig = new SPI.Configuration(socket.CpuPins[5], false, 0, 0, false, true, 2000, socket.SPIModule, socket.CpuPins[3], false);
m_cmdConfig = new SPI.Configuration(socket.CpuPins[6], false, 0, 0, false, true, 2000, socket.SPIModule, socket.CpuPins[3], false);
m_dreq = new InputPort(socket.CpuPins[3], false, Port.ResistorMode.PullUp);
m_SPI = new SPI(m_dataConfig);
to:
public Music()
{
m_dataConfig = new SPI.Configuration(GHI.Premium.Hardware.G120.Pin.P0_1, false, 0, 0, false, true, 2000, SPI.SPI_module.SPI1, GHI.Premium.Hardware.G120.Pin.P0_11, false);
m_cmdConfig = new SPI.Configuration(GHI.Premium.Hardware.G120.Pin.P0_16, false, 0, 0, false, true, 2000, SPI.SPI_module.SPI1, GHI.Premium.Hardware.G120.Pin.P0_11, false);
m_dreq = new InputPort(GHI.Premium.Hardware.G120.Pin.P0_11, false, Port.ResistorMode.PullUp);
m_SPI = new SPI(m_dataConfig);
And then wire up the side header pins for the socket you use 3,4,5,6,7,8 and 9 to P0.11,P0.22,P0.1,P0.16,P0.18,P0.17,P0.15