display

package
v0.0.0-...-e7f0a1f Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: BSD-2-Clause Imports: 11 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 {
	// contains filtered or unexported fields
}

func Init

func Init() (*Display, error)

func (*Display) Close

func (d *Display) Close()

func (*Display) DrawImage

func (d *Display) DrawImage(reader io.Reader)

func (*Display) DrawRAW

func (d *Display) DrawRAW(img image.Image)

func (*Display) FillScreen

func (d *Display) FillScreen(c color.RGBA)

func (*Display) PowerOff

func (d *Display) PowerOff()

PowerOff the display

func (*Display) PowerOn

func (d *Display) PowerOn()

PowerOn the display

func (*Display) Rotate

func (d *Display) Rotate(rotation Rotation)

func (*Display) SetPixel

func (d *Display) SetPixel(x int16, y int16, c color.RGBA)

type Rotation

type Rotation uint8
const (
	NO_ROTATION  Rotation = 0
	ROTATION_90  Rotation = 1 // 90 degrees clock-wise rotation
	ROTATION_180 Rotation = 2
	ROTATION_270 Rotation = 3
)

Jump to

Keyboard shortcuts

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