epd

package
v0.0.0-...-e8f2edc Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Functions related to the HARDWARE configuration

Functions related to the HARDWARE configuration

Index

Constants

This section is empty.

Variables

View Source
var BUSY_PIN = 24 // GPIO_24
View Source
var CS_PIN = 8 // GPIO_8
View Source
var DC_PIN = 25 // GPIO_25
View Source
var RST_PIN = 17 // GPIO_17

Pin definition

Functions

func CloseHW

func CloseHW()

func InitHW

func InitHW()

func WriteBytes

func WriteBytes(data []byte)

Types

type Command

type Command int
const (
	PANEL_SETTING Command = iota
	POWER_SETTING
	POWER_OFF
	POWER_OFF_SEQUENCE_SETTING
	POWER_ON
	POWER_ON_MEASURE
	BOOSTER_SOFT_START
	DEEP_SLEEP
	DATA_START_TRANSMISSION_1
	DATA_STOP
	DISPLAY_REFRESH
	IMAGE_PROCESS
	LUT_FOR_VCOM
	LUT_BLUE
	LUT_WHITE
	LUT_GRAY_1
	LUT_GRAY_2
	LUT_RED_0
	LUT_RED_1
	LUT_RED_2
	LUT_RED_3
	LUT_XON
	PLL_CONTROL
	TEMPERATURE_SENSOR_COMMAND
	TEMPERATURE_CALIBRATION
	TEMPERATURE_SENSOR_WRITE
	TEMPERATURE_SENSOR_READ
	VCOM_AND_DATA_INTERVAL_SETTING
	LOW_POWER_DETECTION
	TCON_SETTING
	TCON_RESOLUTION
	SPI_FLASH_CONTROL
	REVISION
	GET_STATUS
	AUTO_MEASUREMENT_VCOM
	READ_VCOM_VALUE
	VCM_DC_SETTING
	FLASH_MODE
)

type Display

type Display struct {
	Width    int
	Height   int
	Commands map[Command]byte
	Init     func(e *Display)
}

func Epd75b

func Epd75b() *Display

func (*Display) CallFunction

func (e *Display) CallFunction(command Command, data ...byte)

func (*Display) DisplayImage

func (e *Display) DisplayImage(img image.Image) error

func (*Display) Reset

func (e *Display) Reset()

func (*Display) SendCommand

func (e *Display) SendCommand(cmd Command)

func (*Display) SendData

func (e *Display) SendData(data ...byte)

func (*Display) Sleep

func (e *Display) Sleep()

func (*Display) Wait

func (e *Display) Wait()

Ensure to wait before any next command is executed.. monitors the BUSY_PIN

Jump to

Keyboard shortcuts

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