Documentation ¶
Overview ¶
Package sht3x provides a driver for the SHT3x digital humidity sensor series by Sensirion.
Index ¶
Constants ¶
View Source
const ( AddressA = 0x44 AddressB = 0x45 )
The I2C address which this device listens to.
View Source
const ( // single shot, high repeatability MEASUREMENT_COMMAND_MSB = 0x24 MEASUREMENT_COMMAND_LSB = 0x00 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Address uint16 // contains filtered or unexported fields }
Device wraps an I2C connection to a SHT31 device.
func New ¶
New creates a new SHT31 connection. The I2C bus must already be configured.
This function only creates the Device object, it does not initialize the device. You must call Configure() first in order to use the device itself.
func (*Device) ReadHumidity ¶
Read returns the relative humidity in hundredths of a percent.
func (*Device) ReadTemperature ¶
Read returns the temperature in celsius milli degrees (ºC/1000).
Click to show internal directories.
Click to hide internal directories.