waveshare

package
v3.0.25 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EPD_PIN_RESET = gopi.GPIOPin(17)
	EPD_PIN_CS    = gopi.GPIOPin(8)
	EPD_PIN_DC    = gopi.GPIOPin(25)
	EPD_PIN_BUSY  = gopi.GPIOPin(24)

	EPD_SPI_SPEED = 4000000
	EPD_SPI_BUS   = 0
	EPD_SPI_SLAVE = 0
	EPD_SPI_MODE  = gopi.SPI_MODE_0
)
View Source
const (
	EPD_CMD_SLEEP_MODE      = 0x10
	EPD_CMD_SWRESET         = 0x12
	EPD_CMD_RAM_WRITE_BLACK = 0x24
	EPD_CMD_RAM_WRITE_RED   = 0x26
	EPD_CMD_RAM_XADDRESS    = 0x4E
	EPD_CMD_RAM_YADDRESS    = 0x4F
	EPD_CMD_UPDATE          = 0x20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AffineTransform added in v3.0.3

type AffineTransform f64.Aff3

func NewAffineTransform added in v3.0.3

func NewAffineTransform() AffineTransform

func (AffineTransform) Multiply added in v3.0.3

func (AffineTransform) Rotate added in v3.0.3

func (a AffineTransform) Rotate(theta, x, y float64) AffineTransform

func (AffineTransform) Scale added in v3.0.3

func (a AffineTransform) Scale(x, y float64) AffineTransform

func (AffineTransform) Translate added in v3.0.3

func (a AffineTransform) Translate(x, y float64) AffineTransform

type EPD

type EPD struct {
	gopi.Unit
	gopi.GPIO
	gopi.SPI
	// contains filtered or unexported fields
}

func (*EPD) Clear added in v3.0.3

func (this *EPD) Clear(ctx context.Context) error

func (*EPD) Define

func (this *EPD) Define(cfg gopi.Config)

func (*EPD) Dispose

func (this *EPD) Dispose() error

func (*EPD) Draw added in v3.0.3

func (this *EPD) Draw(ctx context.Context, src image.Image) error

func (*EPD) DrawMono added in v3.0.3

func (this *EPD) DrawMono(ctx context.Context, img image.Image) error

DrawMono assumes image is already coded as black and white pixels and that the image is the correct size

func (*EPD) DrawSized added in v3.0.3

func (this *EPD) DrawSized(ctx context.Context, scale float64, src image.Image) error

func (*EPD) New

func (this *EPD) New(gopi.Config) error

func (*EPD) Size added in v3.0.3

func (this *EPD) Size() gopi.Size

func (*EPD) Sleep added in v3.0.3

func (this *EPD) Sleep() error

func (*EPD) String

func (this *EPD) String() string

Jump to

Keyboard shortcuts

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