relay

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 1 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 {
	Set(bool)
}

Relay a relay module

type RelayAgent

type RelayAgent struct {
	// contains filtered or unexported fields
}

RelayAgent standard relay implementation

func New

func New(pin gpio.OutputPin, inverted bool) *RelayAgent

New control a relay

func (*RelayAgent) Set

func (r *RelayAgent) Set(on bool)

On turn the relay on

Jump to

Keyboard shortcuts

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