nonNoise / PyMCP2221A

MCP2221 & MCP2221A work in Python.
MIT License
36 stars 21 forks source link

run as user #16

Closed karelv closed 3 years ago

karelv commented 3 years ago

I can reproduce the behavior from issue #2 !

But is there a way to get this package working as non-root?

Thanks!

karelv commented 3 years ago

I found that you need to add a udev rule

In /etc/udev/rules/99-my-device.rules:

SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", MODE="0666", GROUP="plugdev"

Now it works!