hardware

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relay

type Relay interface {
	Enable()
	Disable()
}

type RelayImpl

type RelayImpl struct {
	RelayPin     int
	InverseLogic bool
	// contains filtered or unexported fields
}

func NewRelay

func NewRelay(relayPin int, inverseLogic bool) *RelayImpl

NewRelay creates a new RelayImpl struct that will communicate with the GPIO pin specified.

func (*RelayImpl) Close

func (r *RelayImpl) Close()

func (*RelayImpl) Disable

func (r *RelayImpl) Disable()

func (*RelayImpl) Enable

func (r *RelayImpl) Enable()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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