display

package
v0.0.0-...-86f3bae Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PanelSetting                  = 0x00
	PowerSetting                  = 0x01
	PowerOff                      = 0x02
	PowerOffSequenceSetting       = 0x03
	PowerOn                       = 0x04
	PowerOnMeasure                = 0x05
	BoosterSoftStart              = 0x06
	DeepSleep                     = 0x07
	DataStartTransmission1        = 0x10
	DataStop                      = 0x11
	Refresh                       = 0x12
	DataStartTransmission2        = 0x13
	PartialDataStartTransmission1 = 0x14
	PartialDataStartTransmission2 = 0x15
	PartialDisplayRefresh         = 0x16
	LutForVcom                    = 0x20
	LutWhiteToWhite               = 0x21
	LutBlackToWhite               = 0x22
	LutWhiteToBlack               = 0x23
	LutBlackToBlack               = 0x24
	PllControl                    = 0x30
	TemperatureSensorCommand      = 0x40
	TemperatureSensorCalibration  = 0x41
	TemperatureSensorWrite        = 0x42
	TemperatureSensorRead         = 0x43
	VcomAndDataIntervalSetting    = 0x50
	LowPowerDetection             = 0x51
	TconSetting                   = 0x60
	TconResolution                = 0x61
	SourceAndGateStartSetting     = 0x62
	GetStatus                     = 0x71
	AutoMeasureVcom               = 0x80
	VcomValue                     = 0x81
	VcmDcSettingRegister          = 0x82
	ProgramMode                   = 0xA0
	ActiveProgram                 = 0xA1
	ReadOtpData                   = 0xA2
)

noinspection ALL

View Source
const (
	EpdWidth  = 176
	EpdHeight = 264
)

Variables

This section is empty.

Functions

func ConvertToGray

func ConvertToGray(img image.Image) *image.Gray

Types

type Display

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

func NewDisplay

func NewDisplay() Display

Ensure rpio.Open() is called before using this

func (Display) Close

func (d Display) Close()

func (Display) DisplayImage

func (d Display) DisplayImage(img image.Image)

type UpdateChannel

type UpdateChannel chan image.Image

func NewDisplayChannel

func NewDisplayChannel(ctx context.Context) UpdateChannel

Jump to

Keyboard shortcuts

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