ME 405
mcp9808.py File Reference

This file contains a driver class for a mcp9808 temperature sensor. More...

Classes

class  mcp9808.MCP9808
 A driver object for the mcp9808 temperature sensor. More...
 

Namespaces

 mcp9808
 

Variables

 mcp9808.i2c = I2C(1, I2C.MASTER)
 The pyb.I2C object used to communicate with the MCP9808 sensor. More...
 
 mcp9808.temp_sensor = MCP9808(i2c,0)
 The mcp9808 object connected to the external temperature sensor. More...
 
 mcp9808.amb_temp = temp_sensor.celcius()
 The ambient temperature read by the MCP9808 sensor in C. More...
 

Detailed Description

This file contains a driver class for a mcp9808 temperature sensor.

Author
E. Nicholson
K. Chuang
Date
February 04, 2021

This file contains a class that acts as a driver for the mcp9808 temperature sensor. It also contains a simple test script that only runs when the file is used as 'main'

The source code for this file can be found here:

https://bitbucket.org/ewnichol/me405_shared_work/src/master/me405%20Lab%200x04/mcp9808.py