worproject / RPi-Windows-Drivers

Windows on ARM device drivers for the Raspberry Pi single-board computer.
https://www.worproject.com
340 stars 30 forks source link

GPIO on Windows 11 not working #52

Open xhorack opened 10 months ago

xhorack commented 10 months ago

Dear sirs, i recently installed WOR to RPI4-8GB, but no GPIO device can be found in device manager. rpi

Windows is version 11 Pro 23H2 build 22631.3085

I tried build a demo project in c# to test if GPIO is accessible:

using System.Device.Gpio; using var controller = new GpioController(); controller.OpenPin(21, PinMode.InputPullUp);

but when i run code, it fails with error: System.PlatformNotSupportedException: 'In order to use Windows10Driver on Windows with .NET 5.0 it is required for your application to target net6.0-windows10.0.17763.0 or higher. Please add that to your target frameworks in your project file.'

Can you confirm me your successful test to access to GPIO using .NET on WOR?

Thanks, Petr