pcd8544

package
v0.0.0-...-f612f80 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLACK                       = 1
	WHITE                       = 0
	LCDWIDTH                    = 84
	LCDHEIGHT                   = 48
	PCD8544_POWERDOWN           = 0x04
	PCD8544_ENTRYMODE           = 0x02
	PCD8544_EXTENDEDINSTRUCTION = 0x01
	PCD8544_DISPLAYBLANK        = 0x0
	PCD8544_DISPLAYNORMAL       = 0x4
	PCD8544_DISPLAYALLON        = 0x1
	PCD8544_DISPLAYINVERTED     = 0x5
	PCD8544_FUNCTIONSET         = 0x20
	PCD8544_DISPLAYCONTROL      = 0x08
	PCD8544_SETYADDR            = 0x40
	PCD8544_SETXADDR            = 0x80
	PCD8544_SETTEMP             = 0x04
	PCD8544_SETBIAS             = 0x10
	PCD8544_SETVOP              = 0x80
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LCD

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

func New

func New(din, clk, dc, rst, cs, contrast byte) *LCD

func (*LCD) Clear

func (this *LCD) Clear()

func (*LCD) Command

func (this *LCD) Command(c byte)

func (*LCD) Data

func (this *LCD) Data(c byte)

func (*LCD) Display

func (this *LCD) Display()

func (*LCD) DrawBitmap

func (this *LCD) DrawBitmap(x, y byte, bitmap []byte, w, h, color byte)

func (*LCD) DrawChar

func (this *LCD) DrawChar(x, y byte, c byte)

func (*LCD) DrawCircle

func (this *LCD) DrawCircle(x0, y0, r, color byte)

func (*LCD) DrawLine

func (this *LCD) DrawLine(x0, y0, x1, y1, color byte)

func (*LCD) DrawRect

func (this *LCD) DrawRect(x, y, w, h, color byte)

func (*LCD) DrawString

func (this *LCD) DrawString(x, y byte, c interface{})

func (*LCD) FillCircle

func (this *LCD) FillCircle(x0, y0, r, color byte)

func (*LCD) FillRect

func (this *LCD) FillRect(x, y, w, h, color byte)

func (*LCD) GetPixel

func (this *LCD) GetPixel(x, y byte) byte

func (*LCD) Init

func (this *LCD) Init()

func (*LCD) SetContrast

func (this *LCD) SetContrast(val byte)

func (*LCD) SetCursor

func (this *LCD) SetCursor(x, y byte)

func (*LCD) SetPixel

func (this *LCD) SetPixel(x, y, color byte)

func (*LCD) Write

func (this *LCD) Write(c byte)

Jump to

Keyboard shortcuts

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