ui

package
v0.0.0-...-0b60053 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LCDWidth  = 16
	LCDHeight = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Debug

type Debug string

type LCDUpdate

type LCDUpdate struct {
	Color *lipgloss.Color
	Lines [LCDHeight]string
}

type LEDClear

type LEDClear struct{}

type LEDColors

type LEDColors struct {
	Index  int
	Colors []lipgloss.Color
}

type LEDShow

type LEDShow struct{}

type Model

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

func NewUI

func NewUI() *Model

func (*Model) ButtonState

func (m *Model) ButtonState() bool

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

func (*Model) ViewLEDs

func (m *Model) ViewLEDs() string

Jump to

Keyboard shortcuts

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