devices

package
v0.0.0-...-2b69e68 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// D128x128 = 128 by 128 pixels
	D128x128 = iota
	// D128x160 = 128 by 160 pixels
	D128x160 // Typically an ST7735S device
	D160x128 // Typically an ST7735S device
	// D160x80 = 160 by 80 pixels
	D128x96
	D160x80

	D320x480 // 320w by 480h = portrait
	D480x320 // landscape

	D480x272
	D800x480
)
View Source
const (
	// Min450Hz is the minimum clock speed of the FTDI232
	Min450Hz = 450
	// Max30MHz is the  maximum clock speed
	Max30MHz = 30000000
)
View Source
const (
	RGBOrder = iota
	BGROrder
)
View Source
const (
	// DELAY is for embedding standard delays during commands.
	DELAY = 0x80
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorOrder

type ColorOrder int

ColorOrder :some of the devices have the SRGB pin tied either high/true (BGR) or low/false (RGB) If your colors are incorrect pass a different byteOrder

type Dimensions

type Dimensions int

Dimensions: The 7735 has several different width/height physical layouts: - 128x128 - 128x160 - 160x80

type RotationMode

type RotationMode int

RotationMode controls raster drawing

const (
	Orientation0 RotationMode = iota
	Orientation1
	Orientation2
	Orientation3
	OrientationDefault
)

type TabColor

type TabColor int

TabColor what color tab sticker you "received" on your TFT device

const (
	// GreenTab indicates that you "received" a Green tab sticker on it
	GreenTab TabColor = iota
	// RedTab indicates that you "received" Green tab sticker on it
	RedTab
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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