mcp9600_simpletest.py
1 import time 2 import board 3 import busio 4 import adafruit_mcp9600 5 6 # frequency must be set for the MCP9600 to function. 7 # If you experience I/O errors, try changing the frequency. 8 i2c = busio.I2C(board.SCL, board.SDA, frequency=100000) 9 mcp = adafruit_mcp9600.MCP9600(i2c) 10 11 while True: 12 print((mcp.ambient_temperature, mcp.temperature, mcp.delta_temperature)) 13 time.sleep(1)