relay

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: BSD-2-Clause Imports: 3 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 struct {
	drivers.Pin[bool]
	*devices.DeviceBase[bool]
}

func New

func New(name string, index int) (*Relay, error)

func (*Relay) Get

func (r *Relay) Get() (bool, error)

func (*Relay) HandleMsg added in v0.0.2

func (r *Relay) HandleMsg(msg *messanger.Msg) error

func (*Relay) Set

func (r *Relay) Set(v bool) error

Jump to

Keyboard shortcuts

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