ui

package
v0.0.0-...-a5f1b2c Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitButtons

func InitButtons() <-chan ButtonEvent

Types

type Button

type Button int
const (
	Red         Button = 0
	Blue        Button = 1
	TigerSwitch Button = 2
)

func (Button) String

func (b Button) String() string

type ButtonEvent

type ButtonEvent struct {
	Pressed bool
	Button  Button
}

func (ButtonEvent) String

func (b ButtonEvent) String() string

type ColorLed

type ColorLed interface {
	Purple()
	Yellow()
	Cyan()
	Red()
	Green()
	Blue()
	Off()
}

func GetColorLED

func GetColorLED() ColorLed

type Tiger

type Tiger interface {
	Off()
	On()
}

func InitTiger

func InitTiger() Tiger

Jump to

Keyboard shortcuts

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