Every time I open the GPIO output, I get this exception:
WinRT information: Failed to open a handle to the device. A resource required for this operation is disabled.
I can not find much information for this on the Internet. Probably because UAP is still in preview. And I donβt think that something is wrong with my code, it is almost the same from the Blink example:
GpioController gpio = GpioController.GetDefault(); if (gpio != null) { var ledpin = gpio.OpenPin(11); ledpin.Write(_light ? GpioPinValue.High : GpioPinValue.Low); ledpin.SetDriveMode(GpioPinDriveMode.Output); }
c # win-universal-app raspberry-pi2 windows-10-iot-core
Arn vanhoutte
source share