drivers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v0.0.4

func Debug(s string, v ...any)

func MonitorButton

func MonitorButton(pin int, onPress string, url string)

func TurnOff

func TurnOff(pin int) error

func TurnOn

func TurnOn(pin int) error

Types

type Sensor

type Sensor struct {
	Type        string
	Unit        string
	Temperature float32
	Humidity    float32
}

func (*Sensor) GetValue

func (sensor *Sensor) GetValue(unit string, cacheTTL time.Duration) (Sensor, bool, error)

Jump to

Keyboard shortcuts

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