nonNoise / PyMCP2221A

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

tag and patch new releases #15

Open jremmet opened 3 years ago

jremmet commented 3 years ago

Because of an Issue with GPIO_Write which was fixed in commit 5990f5c6 we want to upgrade to an new pypi release. Thanks for your work.

Background: if you call GPIO_Write after GPIO_Read self.GPIO_0_DIR << 3 will lead to ValueError: bytes must be in range(0, 256) if e.g. GPIO_0_DIR is 0xEF. This happen due to "GPIO_0_DIR is 0xEF If GP0 is not set for GPIO" operation. " (TRM)