Okay think i have something that should work only question is the sample says this in the comment:
//Make sure to set the pin to your sd card detect pin.
private static InputPort sdCardDetect = new InputPort(Cpu.Pin.GPIO_NONE, false, Port.ResistorMode.Disabled);
I have a Spider II board and a GHI SD Card Module but cant see anywhere what the sd card detect pin is correct or it should be changed?
@ janfl - The card detect pin is on pin 3 of the Gadgeteer SD card module. You can use our pins library to figure out which pin you need: GHI.Pins.FEZSpiderII.SocketX.Pin3 and pass that to your InputPort/InterruptPort. Make sure to update SocketX to whichever socket you have the SD card module connected.