Toggle | Blink DebugLED on Fez Spider Mainboard LowLevel Register Approach
This program offers an alternative solution to blinking the debug LED on the Fez Spider mainboard. Instead of updating a bool local variable every time we call Mainboard.SetDebugLED() I prefer reading the actual state of the pin-port combination.
If you try to read the port using the OutputPort class on pin 47 while the Mainboard is using it you’ll get a CLR_E_PIN_UNAVAILABLE System.Exception wich prevents you to manage the port-pin from 2 locations at the same time.
The proposed solution was to use the Register API and with help from forum members I learned something new I decided to share with all of you
Any feedback is welcomed!