Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Default I2C address Address = 0x48 // Temperature register address RegTemperature = 0x00 // Configuration register address RegConfiguration = 0x01 // Low limit register address RegLimitLow = 0x02 // High limit register address RegLimitHigh = 0x03 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device holds the already configured I2C bus and the address of the sensor.
func (*Device) ReadTemperature ¶
Reads the temperature from the sensor and returns it in celsius milli degrees (°C/1000).
Click to show internal directories.
Click to hide internal directories.