Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 11 IoT (Enterprise) GpioController support #13

Open
nietras opened this issue Oct 18, 2024 · 4 comments
Open

Windows 11 IoT (Enterprise) GpioController support #13

nietras opened this issue Oct 18, 2024 · 4 comments

Comments

@nietras
Copy link

nietras commented Oct 18, 2024

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

@An-nym-us
Copy link

the GPIO pins are not yet supported but you can use the I2c and the uart stuff.

@nietras
Copy link
Author

nietras commented Dec 2, 2024

That is unfortunate, since we solely bought the LattePanda expecting Gpio to work? When is this expected to be working and what are the pre-requisites for this to work?

@jgqoc
Copy link

jgqoc commented Dec 2, 2024

sadly i'm not sure when they will release a bios with the gpio pins working. Now you can use the I2C and UART. As of right now i'm using the I2c's. You can use a i2c to GPIO expander. I have 12 different sensors and multiple relays hooked up to one i2c port.

@jgqoc
Copy link

jgqoc commented Dec 2, 2024

I was in the same boat, purchased it for the gpio but i've that the I2c (though i do need more external hardware) actually exceeds what i need and it works very well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants