display

package
v0.0.0-...-a79553f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultViewFunc

type DefaultViewFunc interface {
	LoadDefaultPage() func() []*string
}

type Display

type Display interface {
	WriteLines(lines ...string)
}

type LCDType

type LCDType uint
const (
	LCD1602 LCDType = iota
)

type Page

type Page []string

type PageFunc

type PageFunc func() Page

type Service

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

func New

func New(display Display) *Service

func (*Service) AddPage

func (s *Service) AddPage(lines ...string)

func (*Service) AddPageFunc

func (s *Service) AddPageFunc(pageFunc PageFunc)

func (*Service) Clear

func (s *Service) Clear()

func (*Service) ClearPages

func (s *Service) ClearPages()

func (*Service) RunPages

func (s *Service) RunPages(ctx context.Context) context.CancelFunc

func (*Service) WriteDisplay

func (s *Service) WriteDisplay(lines ...string)

Jump to

Keyboard shortcuts

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