screen

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display struct {
	LCD *ssd1306.Dev

	Logger *zap.SugaredLogger
}

Display is a screen that you can display info on

func NewDisplay

func NewDisplay(logger *zap.SugaredLogger) (*Display, error)

NewDisplay returns a *Display

func (*Display) Demo

func (display *Display) Demo() error

Demo runs a screen demo

func (*Display) InfoDisplay

func (display *Display) InfoDisplay() error

InfoDisplay shows current information

func (*Display) ScrollText

func (display *Display) ScrollText(x int, y int, message string) error

ScrollText displays text and scrolls it

func (*Display) Text

func (display *Display) Text(x int, y int, message string) error

Text displays text at a position

Jump to

Keyboard shortcuts

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