Closed crbyxwpzfl closed 1 year ago
Hi, thanks for telling. I updated the code. The issue was that when not in GPIO mode the pin value is 0xEE, so 0xEE << 4 is > 255, hence the error. I guess the version of python I used when writing this was trimming instead.
Wow thank you for your quick and helpful response!! Everything is working now. your driver is great especially the ability to define powerup states and the really nice comments in your code! Thanks again
Hi, my mcp2221 breakout by adafruit seems to be recognized ok via
find_device
But I am not able to set the GPIO 0 to
GPIO0Function.GPIO
mac os Ventura python 3.9.6
I really appreciate any help or tips on how to use your python driver. I am not too good at python and the mcp2221 is new to me as well. Anyway feel free to close this issue at any time if this is just me not reading docs correctly.