Documentation
¶
Index ¶
- func BlackOut() error
- func CreateTextImage(text string) []uint16
- func CreateTextImageFromLines(lines []Line) []uint16
- func CreateTextImageFromLinesWithCustomFont(lines []Line, smallSize, bigSize float64, smallAdvance, bigAdvance int) []uint16
- func CreateTextImageFromSlice(lines []string) []uint16
- func InitLCD()
- func IsInited() bool
- func IsMidas() (bool, error)
- func SetScreen(pixels []uint16) error
- func StopLCD()
- type Line
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTextImage ¶
Create screen data from text. It will automatically wrap
func CreateTextImageFromLines ¶
A line is defined as:
type Line struct {
Text string
Color color.Color
}
func CreateTextImageFromLinesWithCustomFont ¶ added in v1.0.3
func CreateTextImageFromLinesWithCustomFont(lines []Line, smallSize, bigSize float64, smallAdvance, bigAdvance int) []uint16
recommended: 12, 24, 13, 26
func CreateTextImageFromSlice ¶
Create screen data from a slice of text
Types ¶
Click to show internal directories.
Click to hide internal directories.