max8x8display

package
v0.0.0-...-fde9c27 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

Config is the configuration for the display

type Device

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

Device holds LEDStriper device and some other information

func New

func New(matrix *max72xx.Device) Device

New returns a new ledstripdisplay driver given a LEDStriper, layout and rotation

func (*Device) ClearDisplay

func (d *Device) ClearDisplay()

ClearDisplay erases the internal buffer

func (*Device) Configure

func (d *Device) Configure(cfg Config)

Configure initializes the display with default configuration

func (*Device) Display

func (d *Device) Display() error

Display sends the buffer (if any) to the screen.

func (*Device) SetPixel

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

SetPizel modifies the internal buffer.

func (*Device) Size

func (d *Device) Size() (w, h int16)

Size returns the current size of the display.

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