valve

package
v0.0.0-...-7a72357 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	SwitchOn() error
	SwitchOff() error
	Status() ValveStatus
}

func New

func New(pin1, pin2 string, upDurationMs uint64) Driver

type ValveStatus

type ValveStatus bool
const (
	ValveOpen  ValveStatus = true
	ValveClose ValveStatus = false
)

Jump to

Keyboard shortcuts

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