05-19-2024, 11:23 PM
(05-19-2024, 10:43 PM)Tim Curtis Wrote: Could be a bug.
See if the driver is running:
Code:pgrep rotenc.py
If it's running and there is no response from the encoder then further debugging is required, however I don't have a device on hand that has an encoder wired in so someone else will need to help out.
I used the command pgrep rotenc.py but did not receive any output. When I searched for and executed rotenc.py, I received the following error message:
Code:
Traceback (most recent call last):
File "/var/www/daemon/rotenc.py", line 170, in <module>
main()
File "/var/www/daemon/rotenc.py", line 61, in main
GPIO.add_event_detect(pin_a, GPIO.BOTH, callback=encoder_isr) # NOTE: bouncetime= is not specified
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to add edge detection