A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.circuitpython.org/projects/mcp9600/en/latest/examples.html below:

Website Navigation


Simple test — Adafruit MCP9600 Library 1.0 documentation

Simple test

Ensure your device works with this simple test.

examples/mcp9600_simpletest.py
 1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
 2# SPDX-License-Identifier: MIT
 3
 4import time
 5
 6import board
 7import busio
 8
 9import adafruit_mcp9600
10
11i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)
12mcp = adafruit_mcp9600.MCP9600(i2c)
13
14while True:
15    print((mcp.ambient_temperature, mcp.temperature, mcp.delta_temperature))
16    time.sleep(1)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4