Library based on the LM75 Libray by Elektronik Hannes Jochriem, Germany
See https://github.com/ehajo/LM75B
Please see examples for further usage of it.
(C) 2021 venice
This library is open source and released under MIT license. Please see this file for further information.
The chip is fully LM75 comatible and communicates via I2C and converts the temperature every 10ms in 11bit resolution (0.125°).
The standard I2C address is 0x48, you can configure three bits (A0, A1, A2) on the Addon-Board to use up to 7 boards.
This gives an extended Address range of:
Binary: 0 1 0 0 1 A2 A1 A0
Hex: 0x48 to 0x4F
After power-up following register settings are default:
- Normal operation mode
- OS comparator mode
- Tth(ots) = 80°C
- Thys = 75°C
- OS output active state is LOW
- Pointer value is logic 00 (Temp)
Set the address if you use something different for A0-A2
Returns the temperature as float value in °C.
You can use this to convert the temperature from °C to °F (I have no idea why you should to this...)
Returns the Temperature overshoot temperature stored in the Tos-register.
Sets the Temperature overshoot temperature. This register is compared with the temp-register after each conversion to set OS-pin.
Returns the Hysteresis temperature stored in Thyst-register
Sets the Hysteresis temperature register. This register is compared after each conversion, if temp-register < Thyst than OS-pin is set.
This is used to send the device in Shutdown-mode. Available MIC184_opmodes are:
- MIC184_MODE_NORMAL (default)
- MIC184_MODE_SHUTDOWN
The OS-opmode defines how the device handles Tos and Thyst events. Available MIC184_OS_opmodes are:
- MIC184_OS_COMPARATOR (default)
- MIC184_OS_INTERRUPT
Defines if the polarity of OS-pin is high or low after TOS-event. Available MIC184_TOSPolarities are:
- MIC184_OSPOL_LOW (default)
- MIC184_OSPOL_HIGH
The fault queue is defined as the number of faults that must occur consecutively to activate the OS output. Available MIC184_OS_Fault_queues are:
- MIC184_FAULTS_1
- MIC184_FAULTS_2
- MIC184_FAULTS_4
- MIC184_FAULTS_6
Set the active Temperature Zone.
Available MIC184_ZONE's are:
- MC184_ZONE_INTERNAL (default)
- MIC184_ZONE_REMOTE