ME 405
mcp9808 Namespace Reference

Classes

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

Variables

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

Variable Documentation

◆ amb_temp

mcp9808.amb_temp = temp_sensor.celcius()

The ambient temperature read by the MCP9808 sensor in C.

◆ i2c

mcp9808.i2c = I2C(1, I2C.MASTER)

The pyb.I2C object used to communicate with the MCP9808 sensor.

The communication channel is opened on bus 1, and the Nucleo is designated as the master.

◆ temp_sensor

mcp9808.temp_sensor = MCP9808(i2c,0)

The mcp9808 object connected to the external temperature sensor.