vscreen

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlackOut

func BlackOut() error

Make every pixel on the screen black

func CreateTextImage

func CreateTextImage(text string) []uint16

Create screen data from text. It will automatically wrap

func CreateTextImageFromLines

func CreateTextImageFromLines(lines []Line) []uint16

A line is defined as:

type Line struct {
	Text  string
	Color color.Color
}

func CreateTextImageFromSlice

func CreateTextImageFromSlice(lines []string) []uint16

Create screen data from a slice of text

func InitLCD

func InitLCD()

Init the LCD. This must be run before any screen functions are run.

func IsInited added in v1.2.1

func IsInited() bool

Check if LCD is initiated.

func SetScreen

func SetScreen(pixels []uint16) error

Applies data to the screen

func StopLCD

func StopLCD()

Types

type Line

type Line struct {
	Text  string
	Color color.Color
}

Jump to

Keyboard shortcuts

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