-
Notifications
You must be signed in to change notification settings - Fork 87
ADT7310
ADT7310 is a library for PyBBIO to interface with ADT7310 Temperature sensor from the Beaglebone Black's SPI pins.
Creates an instance of the ADT7310 class to control the ADT7120 on the given spi_bus and chip select determined by cs. spi_bus can take values 0 and 1. cs also takes a value of 0 and 1. NOTE : SPI1 cannot be used without disabling the HDMI.
Removes alarms if set and closes the SPI connection
Resets the sensor to default values.
Returns the 13-bit temperature value in Celsius.
Sets the High Temperature above which the Interrupt pin will activate.
Sets the Low Temperature, based on temp, below which the Interrupt pin will activate
Sets the Hystersis Temperature, based on temp, below which determines the tolerance. Must be between 0 and 15 C
Sets the Critical Temperature below which the CT pin will activate.
Sets the alarm_pin to an interrupt pin and calls callback() when interrupt occurs as required. return_callback is called when the temperature falls back below threshold-hysteresis
Sets the critical_pin to be an interrupt and calls callback() when over-temperature event occurs as required. return_callback() is optionally called when the temperature falls back below threshold-hysteresis.
Returns the value in the register specified by reg.
Removes alarm on interrupt pin.
Removes critical alarm on CT pin.