Open vrescobar opened 2 months ago
Answered by email
Hi @vrescobar I added here also details for your version of gpiod is actually the next script
chip = gpiod.chip("/dev/gpiochip4")
line = chip.get_line(button_pin)
button_line = gpiod.line_request()
and While
while 1:
button_state = line.get_value()
if button_state == 1:
test_DRDY = 10
if test_DRDY == 10 and button_state == 0:
test_DRDY = 0
I try to run on the newest raspberry pi 5 and following the instructions but I encoutnered a few issues
The first error I encounter is with gpiod path which is not found. When I corrected to the full qualified path
chip = gpiod.Chip("/dev/gpiochip4")
it will continue failing as the API seems to be differentDo you have a pip's
requirements.txt
to make sure the same versions are matched? here are my currently installed deps$ pip freeze