Category "gpio"

how to change label text in Tkinter with callback function out of window.mainloop

im triggering callback function witch reads encoder output with GPIO.add_event_detect so the global counter has current value, but i cant pass it to tkinter lik

Beaglebone black GPIO registers not changing voltage on value change

I'm trying to turn on and off the GPIO headers on the beaglebone, but i'm unable to get the physical pins to switch from high to low and vice versa. Ive written

Stepper motor continues turning after code is finished

I am playing around with a Nema17 stepper motor on an Raspberry Pi 4 using Python 3.7.3 and a A4988 stepper motor driver. I run the code below and it works fine

How can I use gpio from raspberry pi 4 to control a pyglet script

I have a program that i would like to control with buttons and sensors from the gpio pins of raspberry pi 4. The idea is to make the script run when a sensor or