led

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RealSetter

type RealSetter struct {
	LEDPath string
}

Setter structure

func (*RealSetter) GetLED

func (setter *RealSetter) GetLED() (state bool)

func (*RealSetter) SetLED

func (setter *RealSetter) SetLED(state bool) error

type Setter

type Setter interface {
	SetLED(state bool) error
	GetLED() bool
}

Setter interface used for unit testing

Jump to

Keyboard shortcuts

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