If I create a blinky app (with motherboard led) for FEZ Spider with TinyClr 0.6.0, it runs fine without debugger.
If I launch it with debugger and stop debugger, after a while (1-2 mins) application may crash as no led is more blinking.
Here code used:
class Program
{
private static GpioPin _led;
static void Main()
{
string deviceName = DeviceInformation.DeviceName;
Debug.WriteLine(deviceName);
Debug.WriteLine(DeviceInformation.Version.ToString());
if (deviceName == "G80")
_led = GpioController.GetDefault().OpenPin(GHIElectronics.TinyCLR.Pins.FEZPandaIII.GpioPin.Led1);
else if (deviceName == "netduino3")
_led = GpioController.GetDefault().OpenPin(GHIElectronics.TinyCLR.Pins.Netduino3.GpioPin.Led);
else if (deviceName == "EMX")
_led = GpioController.GetDefault().OpenPin(GHIElectronics.TinyCLR.Pins.EMX.GpioPin.P1_31);
else
{
return;
}
_led.SetDriveMode(GpioPinDriveMode.Output);
while (true)
{
_led.Write(GpioPinValue.High);
Thread.Sleep(200);
_led.Write(GpioPinValue.Low);
Thread.Sleep(500);
}
}
}