from machine import I2C
from mcp9808 import MCP9808
from time import sleep

# Pyboard - SDA=Y10, SCL=Y9
i2c = I2C(2)
# ESP8266 sous MicroPython
# i2c = I2C(scl=Pin(5), sda=Pin(4))

mcp = MCP9808( i2c = i2c )
while True:
    print( "%s °C" % mcp.temperature )
    sleep( 1 )

dc0afafad014bdf62165fd64a0674f70927ea43f
<mask token>

<mask token>
while True:
    print('%s °C' % mcp.temperature)
    sleep(1)

<mask token>
i2c = I2C(2)
mcp = MCP9808(i2c=i2c)
while True:
    print('%s °C' % mcp.temperature)
    sleep(1)

from machine import I2C
from mcp9808 import MCP9808
from time import sleep
i2c = I2C(2)
mcp = MCP9808(i2c=i2c)
while True:
    print('%s °C' % mcp.temperature)
    sleep(1)

from machine import I2C
from mcp9808 import MCP9808
from time import sleep

# Pyboard - SDA=Y10, SCL=Y9
i2c = I2C(2)
# ESP8266 sous MicroPython
# i2c = I2C(scl=Pin(5), sda=Pin(4))

mcp = MCP9808( i2c = i2c )
while True:
    print( "%s °C" % mcp.temperature )
    sleep( 1 )
