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

How do I test the GPIO pins with windows11ARM? #48

Open
darcknetss opened this issue Jun 21, 2023 · 2 comments
Open

How do I test the GPIO pins with windows11ARM? #48

darcknetss opened this issue Jun 21, 2023 · 2 comments

Comments

@darcknetss
Copy link

darcknetss commented Jun 21, 2023

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 darcknetss changed the title ¿Como pruebo los pines GPIO con el windows11ARM? How do I test the GPIO pins with windows11ARM? Jun 21, 2023
@driver1998
Copy link

driver1998 commented Jun 26, 2023

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.

@darcknetss
Copy link
Author

@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 darcknetss reopened this Jun 26, 2023
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

2 participants