ssd1289

package
v0.0.0-...-0087ba1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package ssd1289 implements a driver for the SSD1289 led matrix controller as packaged on the TFT_320QVT board

Datasheet: http://aitendo3.sakura.ne.jp/aitendo_data/product_img/lcd/tft2/M032C1289TP/3.2-SSD1289.pdf

Index

Constants

View Source
const (
	OSCILLATIONSTART                Command = 0x00
	DRIVEROUTPUTCONTROL                     = 0x01
	POWERCONTROL1                           = 0x03
	POWERCONTROL2                           = 0x0C
	POWERCONTROL3                           = 0x0D
	POWERCONTROL4                           = 0x0E
	POWERCONTROL5                           = 0x1E
	DISPLAYCONTROL                          = 0x07
	SLEEPMODE                               = 0x10
	ENTRYMODE                               = 0x11
	LCDDRIVEACCONTROL                       = 0x02
	HORIZONTALRAMADDRESSPOSITION            = 0x44
	VERTICALRAMADDRESSSTARTPOSITION         = 0x45
	VERTICALRAMADDRESSENDPOSITION           = 0x46
	SETGDDRAMYADDRESSCOUNTER                = 0x4F
	SETGDDRAMXADDRESSCOUNTER                = 0x4E
	RAMDATAREADWRITE                        = 0x22
)

Variables

This section is empty.

Functions

func NewPinBus

func NewPinBus(pins [16]machine.Pin) pinBus

Types

type Bus

type Bus interface {
	Set(data uint16)
}

type Command

type Command byte

type Device

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

func New

func New(rs machine.Pin, wr machine.Pin, cs machine.Pin, rst machine.Pin, bus Bus) Device

func (*Device) ClearDisplay

func (d *Device) ClearDisplay()

func (*Device) Configure

func (d *Device) Configure()

func (*Device) Display

func (d *Device) Display() error

func (*Device) FillDisplay

func (d *Device) FillDisplay(c color.RGBA)

func (*Device) FillRect

func (d *Device) FillRect(x, y, w, h int16, c color.RGBA)

func (*Device) SetPixel

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

func (*Device) Size

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

Jump to

Keyboard shortcuts

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