epd

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 12 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 New

func New() (*Display, error)

func NewWithConfig

func NewWithConfig(config DisplayConfig) (*Display, error)

func (*Display) Clear

func (d *Display) Clear(white bool) error

func (*Display) Close

func (d *Display) Close() error

func (*Display) DrawImage

func (d *Display) DrawImage(img image.Image) error

func (*Display) Size

func (d *Display) Size() (int, int)

func (*Display) Sleep

func (d *Display) Sleep() error

type DisplayConfig

type DisplayConfig struct {
	DCPin   string
	CSPin   string
	RSTPin  string
	BUSYPin string

	SPIFrequency physic.Frequency
	SPIMode      spi.Mode

	ResetHoldTime  time.Duration
	ResetDelayTime time.Duration
	BusyPollTime   time.Duration
	RefreshTimeout time.Duration

	OnBusyStateChange func(busy bool)
}

func DefaultConfig

func DefaultConfig() DisplayConfig

Jump to

Keyboard shortcuts

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