Since the GHI Music Module was discontinued I was forced to design it myself. It works fine with the existing separate drivers for the Music Module and SD card. (although not completely in line with the modular Gadgeteer concept).
I’m sure forum members will be disappointed that the Music Module is discontinued therefore my contribution for keeping .NETMF players in the field.
For the 4 LED’s and buttons I use;
// Output pins 4x LED (port 9, 10, 11, 12, 3 14 <3..9>)
Cpu.Pin LEDAPin = Socket.GetSocket(12, false, null, null).CpuPins;
o_LED_MUSIC = new OutputPort(LEDAPin, false);
// Input pins (port 9, 10, 11, 12, 3 14 <3..9>)
var BttnAPin = Socket.GetSocket(11, false, null, null).CpuPins;
InterruptPort i_BttnA = new InterruptPort(BttnAPin, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeLow);
i_BttnA.OnInterrupt += new NativeEventHandler(Bttn_Music_Pressed);