sht3x

package
v0.0.0-...-5725b45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package sht3x provides access to SHT3x-D based devices.

Index

Constants

View Source
const (
	I2CAddr uint8 = 0x44 // SHT31D default address
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	// contains filtered or unexported fields
}

Device is a SHT3x-D based device.

func Open

func Open(conn *smbus.Conn, addr uint8) (*Device, error)

Open opens a connection to a SHT3x-D device at the given address.

func (*Device) ClearStatus

func (dev *Device) ClearStatus() error

func (*Device) Close

func (dev *Device) Close() error

func (*Device) Sample

func (dev *Device) Sample() (t, rh float64, err error)

Sample returns the temperature and the relative humidity from the device.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL