RPi-Windows-Drivers icon indicating copy to clipboard operation
RPi-Windows-Drivers copied to clipboard

How do I test the GPIO pins with windows11ARM?

Open darcknetss opened this issue 2 years ago • 2 comments

I can't find how to use in linux it is the RPI.GPIO I managed to see for windows and I only get the Windows.Devices.Gpio but trying only undefined sale me

darcknetss avatar Jun 21 '23 16:06 darcknetss

If you are talking about python you can try to use Windows.Devices.Gpio API with the pywinrt winsdk package.

If you are comfortable with C++ you can checkout my demos repo: https://github.com/driver1998/rpi3win10demos. Official .NET IoT demos should also work.

driver1998 avatar Jun 26 '23 01:06 driver1998

@driver1998 What I want to do more than anything is a .py that turns a led on and off. well it is as an example and another that reads pulsometer pulses in ubuntu it used the RPi.GPIO

import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BCM)

pin_led = 18

GPIO.setup(pin_led, GPIO.OUT)

GPIO.output(pin_led, GPIO.HIGH) print("LED encendido")

GPIO.output(pin_led, GPIO.LOW) print("LED apagado")

GPIO.cleanup()

darcknetss avatar Jun 26 '23 18:06 darcknetss