LattePandaTeam / LattePanda-Mu

All about LattePanda Mu
MIT License
101 stars 6 forks source link

Windows 11 IoT (Enterprise) GpioController support #13

Open nietras opened 1 month ago

nietras commented 1 month ago

Trying to use .NET/UWP GpioController for GPIO on Latte Panda Mu with Full Carrier Board on Windows 11 IoT Enterprise (x64), but this appears to fail:

Unhandled exception. System.NotSupportedException: No GPIO controllers exist on this system.
   at System.Device.Gpio.Drivers.Windows10Driver..ctor()
   at System.Device.Gpio.GpioController.GetBestDriverForBoardOnWindows()
   at System.Device.Gpio.GpioController.GetBestDriverForBoard()
   at System.Device.Gpio.GpioController..ctor(PinNumberingScheme numberingScheme)
   at System.Device.Gpio.GpioController..ctor()
   at Program.<Main>$(String[] args) in C:\Users\Niels\source\repos\GpioDemo\Program.cs:line 7
   at Program.<Main>(String[] args)

e.g. with simple code like:

new System.Device.Gpio.GpioController()

I have installed drivers as found here in this github repo and device manager shows the following for system devices. Maybe something is missing or?

Or how can I use the GPIO from .NET 8/9 in Windows?

image