hdc100x

package
v0.0.0-...-a97f0ba Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HDC100x

type HDC100x struct {
	Bus embd.I2CBus
}

HDC100x represents a HDC1000 series temperature and humidity sensor.

func New

func New(bus embd.I2CBus) *HDC100x

New returns a handle to a HDC100x sensor.

func (*HDC100x) Humidity

func (d *HDC100x) Humidity() (float64, error)

Humidity returns the current relative humidity percentage

func (*HDC100x) Temperature

func (d *HDC100x) Temperature() (float64, error)

Temperature returns the current temperature reading in Fahrenheit

Jump to

Keyboard shortcuts

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