MSDN Windows IoT Community My Profile
How to configure GPIO pins on Raspberry Pi 4 with Windows IoT?
A
Alex Johnson (alexj) Sep 14, 2025 09:23 AM
I'm trying to set up a simple LED blinking example on a Raspberry Pi 4 running Windows IoT Core. The official docs mention using GpioController, but I'm getting a COMException when calling OpenPin. Has anyone encountered this issue?
M
Maria Lee (mlee) Sep 14, 2025 10:02 AM
Make sure you have the correct capability declared in the app manifest:
<DeviceCapability Name="gpio" />
Also, verify that the pin number matches the board's layout. Pin 5 works for me.
J
John Patel (johnp) Sep 14, 2025 10:45 AM
If you're using Visual Studio, check that the target architecture is set to ARM64 for the Pi 4. x86 builds will not work and can cause that exception.

Post a Reply