led

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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 RealSetter

type RealSetter struct {
	LEDPath string
}

RealSetter implements the Setter interface for LEDs

func (*RealSetter) GetLED

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

GetLED returns the current status of the LED

func (*RealSetter) SetLED

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

SetLED switches a LED on or off

type Setter

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

Setter interface used for unit testing

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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