led

package
v0.0.0-...-86f3bae Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 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 Pins

type Pins struct {
	White  pin.LedPin
	Green  pin.LedPin
	Yellow pin.LedPin
	Red    pin.LedPin
}

type State

type State struct {
	White  bool
	Green  bool
	Yellow bool
	Red    bool
}

type UpdateChannel

type UpdateChannel chan<- State

func NewLEDChannel

func NewLEDChannel(ctx context.Context, pins Pins) UpdateChannel

func RunLEDWorker

func RunLEDWorker(ctx context.Context, pins Pins) UpdateChannel

Jump to

Keyboard shortcuts

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