Closed PaTPouL closed 5 years ago
Hi This library use hidapi. https://github.com/trezor/cython-hidapi
You try Build from source Install. Thank you.
I made it work by running as root.
user@computer:~$ sudo -i
root@computer:~# cd /PyMCP2221A/
root@computer:/PyMCP2221A# ls
MCP2221_i2cdetect.py venv
root@computer:/PyMCP2221A# source venv/bin/activate
(venv) root@computer:/PyMCP2221A# python MCP2221_i2cdetect.py
--------------------------------------------------
MCP2221(A) i2cdetect
--------------------------------------------------
Reset
0 1 2 3 4 5 6 7 8 9 A B C D E F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 0F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 2F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 3F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 4F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 5F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 6F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- --
(venv) root@computer:/PyMCP2221A#
Thank you!! As another way.......... There is also a technique of putting compiled binary data in the folder of PyMCP 2221A, but I can not recommend it. I'm looking for a good way.
HI,
Thanks for this project, I was looking to do something similar.
When I try to run your example I got an error during open session
I can see my device using dmesg
Maybe it's related to my lib import, I was not able to import hidapi I try pip install hidapi
But When I try to import in python I got an error
That's why I use import hid instead import hidapi. I try with python 2 and python 3 but I got the same result.
Maybe I forgot something during your package installation.
Thanks again for your help,
PaTPouL
from lsusb -v