What can be the reason that in my App GpioController.GetDefault()
always returns null? The app is running on a RPI3b (as other Apps have done before.... never ran into this?!)
var gpioController = GpioController.GetDefault();
// gpio controller is null ... why?!
ServiceContainer.Instance.Register(new IO(gpioController));;
Found the issue. It was in Windows IoT configuration itself. There is a "default controller driver" in the devices tab. It was set to a DMA driver. Changing it to "Inbox driver" and rebooting the Pi solved the problem.