lib75i3c

package
v0.0.0-...-6f3f637 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	X = width
	Y = height
)
View Source
const (
	SOFTSTARTSETTING byte = 0x0C
	DEEPSLEEP        byte = 0x10
	DATAENTRYMODE    byte = 0x11
	SWRESET          byte = 0x12
	WRITEBLACK       byte = 0x24
	WRITERED         byte = 0x26
	VBD              byte = 0x3C
)

Variables

This section is empty.

Functions

func ClearDisplay

func ClearDisplay()

func Convert

func Convert(img image.Image) []byte

Convert an image.Image into a ready-to-display byte buffer.

func DisplayImage

func DisplayImage(black image.Image, red image.Image)

DisplayImage displays the bitmap in `black` with black pixels and the bitmap in `red` as red pixels

func Exit

func Exit()

Exit closes the SPI interface to the display

func Initialize

func Initialize()

Initialize the display.

func Reset

func Reset()

Reset the display

func SendCommand

func SendCommand(reg byte)

SendCommand sends a command to the display

func SendData

func SendData(data byte)

SendData transmits a byte of data to the display

func Sleep

func Sleep()

Sleep puts the display into deep sleep mode

func TurnOnDisplay

func TurnOnDisplay()

TurnOnDisplay turns the display on

func WaitIdle

func WaitIdle()

WaitIdle waits until the display is no longer busy

Types

This section is empty.

Jump to

Keyboard shortcuts

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