Issue with MCP9808 library and SoftI2C #10684
Answered
by
mcauser
JeremyLaurenson
asked this question in
Libraries & Drivers
-
Hey folks, Im trying to get an MCP9808 I2C sensor going using the code from https://github.com/kfricke/micropython-mcp9808 I needed to fix an issue first where it would accept SoftI2C as well as I2C arguments, but my next issue us the following: TypeError: object with buffer protocol required
Should I be fixing this and submitting back tot he repo, or is there a different place I should be getting the code from? |
Beta Was this translation helpful? Give feedback.
Answered by
mcauser
Feb 7, 2023
Replies: 1 comment 2 replies
-
To work around this, try wrapping the buf in a byte array |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
peterhinch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To work around this, try wrapping the buf in a byte array
bytearray(buf)