sensor

package
v0.0.0-...-83dc61a Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IrSensor

type IrSensor struct {
	AmbientTemp Temp
	ObjectTemp  Temp
	Config      *config.Config
	// contains filtered or unexported fields
}

func NewIrSensor

func NewIrSensor(cnf *config.Config) *IrSensor

func (*IrSensor) Close

func (sensor *IrSensor) Close()

func (*IrSensor) Connect

func (sensor *IrSensor) Connect() error

func (*IrSensor) ReadTemps

func (sensor *IrSensor) ReadTemps() error

type Temp

type Temp uint16

func (Temp) Celsius

func (t Temp) Celsius() float32

func (Temp) CelsiusPretty

func (t Temp) CelsiusPretty() string

func (Temp) Fahrenheit

func (t Temp) Fahrenheit() float32

deprecated? ;P

func (Temp) FahrenheitPretty

func (t Temp) FahrenheitPretty() string

func (Temp) Kelvin

func (t Temp) Kelvin() float32

func (Temp) KelvinPretty

func (t Temp) KelvinPretty() string

func (Temp) String

func (t Temp) String() string

Jump to

Keyboard shortcuts

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