il0373

package module
v0.0.0-...-eb5837a Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLACK int = iota
	WHITE
	INVERSE
	RED
	DARK
	LIGHT
)
View Source
const (
	IL0373_PANEL_SETTING      = 0x00
	IL0373_POWER_SETTING      = 0x01
	IL0373_POWER_OFF          = 0x02
	IL0373_POWER_OFF_SEQUENCE = 0x03
	IL0373_POWER_ON           = 0x04
	IL0373_POWER_ON_MEASURE   = 0x05
	IL0373_BOOSTER_SOFT_START = 0x06
	IL0373_DEEP_SLEEP         = 0x07
	IL0373_DTM1               = 0x10
	IL0373_DATA_STOP          = 0x11
	IL0373_DISPLAY_REFRESH    = 0x12
	IL0373_DTM2               = 0x13
	IL0373_PDTM1              = 0x14
	IL0373_PDTM2              = 0x15
	IL0373_PDRF               = 0x16
	IL0373_LUT1               = 0x20
	IL0373_LUTWW              = 0x21
	IL0373_LUTBW              = 0x22
	IL0373_LUTWB              = 0x23
	IL0373_LUTBB              = 0x24
	IL0373_PLL                = 0x30
	IL0373_CDI                = 0x50
	IL0373_RESOLUTION         = 0x61
	IL0373_VCM_DC_SETTING     = 0x82
)

Variables

This section is empty.

Functions

func WriteBuf

func WriteBuf(buf *bytes.Buffer, vars ...interface{}) error

Types

type Device

type Device struct {
	SPI         drivers.SPI
	CS_PIN      machine.Pin
	DC_PIN      machine.Pin
	SRAM_CS_PIN machine.Pin
	RST_PIN     machine.Pin
	BUSY_PIN    machine.Pin

	Width    int
	Height   int
	Rotation int
	// contains filtered or unexported fields
}

func New

func New(width, height int, bus drivers.SPI, csPin, dcPin, sramCSPin, rstPin, busyPin machine.Pin) *Device

func (*Device) Begin

func (d *Device) Begin(reset bool)

func (*Device) BusyWait

func (d *Device) BusyWait()

func (*Device) Clear

func (d *Device) Clear()

func (*Device) Display

func (d *Device) Display() error

func (*Device) DisplayImage

func (d *Device) DisplayImage(imageWidth, imageHeight int, image [][]byte)

func (*Device) Fill

func (d *Device) Fill(color int)

func (*Device) FillRect

func (d *Device) FillRect(x, y, width, height int, color int)

func (*Device) HardwareReset

func (d *Device) HardwareReset()

func (*Device) Initialize

func (d *Device) Initialize()

func (*Device) Pixel

func (d *Device) Pixel(x, y int, color int)

func (*Device) PowerDown

func (d *Device) PowerDown()

func (*Device) PowerUp

func (d *Device) PowerUp() error

func (*Device) SPITransfer

func (d *Device) SPITransfer(databyte byte) byte

func (*Device) SetBlackBuffer

func (d *Device) SetBlackBuffer(index int, inverted bool)

func (*Device) SetColorBuffer

func (d *Device) SetColorBuffer(index int, inverted bool)

func (*Device) SetPixel

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

SetPixel modifies the internal buffer.

func (*Device) SetRotation

func (d *Device) SetRotation(val int)

func (*Device) Size

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

Func Size returns size of display

func (*Device) Update

func (d *Device) Update()

func (*Device) WriteRam

func (d *Device) WriteRam(index int) byte

Jump to

Keyboard shortcuts

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