I have been going through the eBook and cannot find an example or confirmation if it is possible or not to create a interrupt handler for when a SD card is inserted. The code for the USB interrupt handler is extremely useful and I would like to implement a similar strategy for handling my SD devices.
// Subscribe to RemovableMedia events RemovableMedia.Insert += new InsertEventHandler(RemovableMedia_Insert); RemovableMedia.Eject += new EjectEventHandler(RemovableMedia_Eject); // Subscribe to USB events USBHostController.DeviceConnectedEvent += new USBH_DeviceConnectionEventHandler(USBHostController_DeviceConnectedEvent);
This is the code from the eBook which I guess most of the FEZ users know pretty well. My problem with not being able to do this is that, if I cannot use an interrupt routine then I need to use a loop that continuously scans the SD slot for if the device is connected, so my code is going to be frozen at this point.
Also, a side question. If I design a pcb board that has a connection for the larger SD cards instead of the micro sD’s, would the fez still operate the same with the larger cards. *Assuming I can make a PCB correctly. I have zero experience designing with SD memory, but from what I can tell they are pretty much the same port for the regular and the micro besides the size difference.