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

Raspberry Pi4 running WIndows 11 - GPIO #2183

Open
vandenplas9aa opened this issue Dec 1, 2023 · 9 comments
Open

Raspberry Pi4 running WIndows 11 - GPIO #2183

vandenplas9aa opened this issue Dec 1, 2023 · 9 comments
Labels
enhancement New feature or request Priority:2 Work that is important, but not critical for the release

Comments

@vandenplas9aa
Copy link

Does:

RaspberryPiDriverTest.cs run on the Raspberry Pi4 running WIndows 11 ?

(I hope the answer is yes!)

I've also installed ms code

@vandenplas9aa vandenplas9aa added the api-suggestion Early API idea and discussion, it is NOT ready for implementation label Dec 1, 2023
@ghost ghost added the untriaged label Dec 1, 2023
@Ellerbach
Copy link
Member

This scenario is not supported because there is not yet any Windows driver properly exposed. If one will implement it, then it will properly be able to use it.

@vandenplas9aa
Copy link
Author

On the https://worproject.com/faq for GPIO drivers FAO, it points to this site for raspberry pi windows 11 gpio drivers

The driver for windows 11 raspberry pi is located at:

Driver:

https://github.com/raspberrypi/windows-drivers/tree/master/drivers/gpio/bcm2836

alternatively, could a WINE application (win32 application under raspberry Linux) set the GPIOs?

@Ellerbach
Copy link
Member

You have example of custom drivers here: https://github.com/dotnet/iot/tree/main/src/devices/Gpio
And the main supported ones here: https://github.com/dotnet/iot/tree/main/src/System.Device.Gpio/System/Device/Gpio/Drivers

That can give you an idea on how to add the one you're looking for.

@vandenplas9aa
Copy link
Author

big thanks, but again Linux based. It very easy in Linux (the example here looks good), but window 11 seems to be major issue (all it is doing is changing a register!)

I did find:
https://github.com/microsoft/Windows-driver-samples/tree/main/gpio/samples

which might be worth a try

It is understand the gpio/bcm2836 driver, I guess..

@Ellerbach
Copy link
Member

One of the example, is Windows IoT: https://github.com/dotnet/iot/blob/main/src/System.Device.Gpio/System/Device/Gpio/Drivers/Windows10Driver.cs
and : https://github.com/dotnet/iot/blob/main/src/System.Device.Gpio/System/Device/Gpio/Drivers/Windows10DriverPin.cs

So it all depends how the Windows driver is exposed. dllimport will in all cases most likely be your friend here.

@krwq krwq added blocked Issue/PR is blocked on something - see comments Priority:1 Work that is critical for the release, but we could probably ship without and removed blocked Issue/PR is blocked on something - see comments labels Dec 14, 2023
@ghost ghost removed the untriaged label Dec 14, 2023
@krwq krwq added enhancement New feature or request and removed api-suggestion Early API idea and discussion, it is NOT ready for implementation labels Dec 14, 2023
@driver1998
Copy link

driver1998 commented Dec 18, 2023

The Raspberry Pi Windows 11 driver is compatible with the Windows 10 IoT Windows.Devices.Gpio API (not surprising since it is the same driver ported over), Windows10Driver.cs should work.

Also see https://github.com/driver1998/rpi3win10demos for some (C++/WinRT) demos.

@pgrawehr
Copy link
Contributor

@driver1998 That sounds good. Have you managed to install Windows 11 on a Raspberry Pi? I have not yet found working instructions on how to do that.

@driver1998
Copy link

driver1998 commented Dec 29, 2023

I am one of the testers back then, it is a community-driven project all along. I guess WoR Deployer from https://worproject.com/ should just work.

@krwq krwq added Priority:2 Work that is important, but not critical for the release and removed Priority:1 Work that is critical for the release, but we could probably ship without labels Apr 11, 2024
@krwq
Copy link
Member

krwq commented Apr 11, 2024

[Triage] it doesn't seem critical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority:2 Work that is important, but not critical for the release
Projects
None yet
Development

No branches or pull requests

5 participants