comm

package
v0.0.0-...-f09d291 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ready
	KnobTurned
	ButtonPressed
	ButtonReleased
)

messageKind values

Variables

This section is empty.

Functions

func OpenPort

func OpenPort(port string) (<-chan Message, chan<- Command)

Types

type Command

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

func NewClearLEDCommand

func NewClearLEDCommand(target int) Command

func NewResetCommand

func NewResetCommand() Command

func NewSetLEDCommand

func NewSetLEDCommand(target int, color byte) Command

func NewToggleLEDCommand

func NewToggleLEDCommand(target int, on bool) Command

type Message

type Message struct {
	Message messageKind
	Source  int
	Value   int
}

Jump to

Keyboard shortcuts

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