Closed staebchen0 closed 2 years ago
Does it work when you run as root? Try sudo
...
that's interesting, logged in with root it works
>>> import hid
>>> dev = hid.device()
>>> dev.open(5824,1503)
>>> dev.set_nonblocking(1)
0
>>> idx = 1
>>>
I have the program running in PyCharm, what do I have to do?
Thanks!
It means you did not correctly install the udev rules for your device.
OK, I have stored the rules with root rights, otherwise I could not save
do you have any advice on how to do it right?
Hi, I'm trying to control a USB relay with the Pi.
I have carried out all installation steps (on raspberry pi 4). Rules add an:
The import hid works in Python 3.9 :
is ok!
Test.py gives the following result:
OK
However, when I open the release, I get an error: Code:
Error message:
Thanks in advance for the help :-)