ME 405: Mechatronics Portfolio
mcp9808_young.py File Reference

Created on Thu Feb 4 09:09:13 2021. More...

Classes

class  mcp9808_young.MCP9808
  MCP9808 temperature sensor breakout board I2C class
More...
 

Variables

 mcp9808_young.i2c = I2C(1)
 I2C object using BUS 1.
 
int mcp9808_young.address = 0x18
 I2C address for MCP9808 sensor.
 
 mcp9808_young.mcp = MCP9808(i2c,address)
 object of class MCP9808
 

Detailed Description

Created on Thu Feb 4 09:09:13 2021.

Author
Miles Young
Date
02/4/2021

MCP9808 temperature sensor breakout board I2C class
This script defines a class for I2C communication with the Adafruit MCP9808 temperature sensor breakout board, as well as lines of test code which initiate only when the script is run independently.