ilidci

package
v0.0.0-...-168ccc2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DCI

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

DCI implements ili9341.DCI interface.

func Make

func Make(spidrv *spi.Driver, dc gpio.Pin, baudrate int) DCI

Make returns initialized DCI struct. It only initializes DCI type and does not configure SPI peripheral. Use DCI.Setup to configure SPI.

func New

func New(spidrv *spi.Driver, dc gpio.Pin, baudrate int) *DCI

New provides convenient way to create heap allocated DCI. See Make.

func (*DCI) Cmd

func (dci *DCI) Cmd(b byte)

func (*DCI) Cmd2

func (dci *DCI) Cmd2(w uint16)

func (*DCI) Err

func (dci *DCI) Err(clear bool) error

func (*DCI) Fill

func (dci *DCI) Fill(w uint16, n int)

func (*DCI) SPI

func (dci *DCI) SPI() *spi.Driver

func (*DCI) SetWordSize

func (dci *DCI) SetWordSize(size int)

func (*DCI) Setup

func (dci *DCI) Setup()

Setup configures and enables SPI peripheral.

func (*DCI) Write

func (dci *DCI) Write(data []uint16)

func (*DCI) WriteByte

func (dci *DCI) WriteByte(b byte)

func (*DCI) WriteWord

func (dci *DCI) WriteWord(w uint16)

Jump to

Keyboard shortcuts

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