I'm trying to use this library with the Pi Pico running MicroPython v1.15. My code currently looks like this:
Code: Select all
from mcp9808 import MCP9808
from machine import I2C
from machine import Pin
i2c = I2C(0, scl=Pin(5), sda=Pin(4), freq=10000)
sensor = MCP9808(i2c)
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
File "/lib/mcp9808.py", line 52, in __init__
File "/lib/mcp9808.py", line 86, in _check_device
File "/lib/mcp9808.py", line 60, in _send
TypeError: object with buffer protocol required