pcd8544

package
v0.0.0-...-1e5a62b Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2015 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WHITE = 0
	BLACK = 1

	LCDWIDTH  = 84
	LCDHEIGHT = 48

	DISPLAY_BLANK    = 0x0
	DISPLAY_NORMAL   = 0x4
	DISPLAY_ALLON    = 0x1
	DISPLAY_INVERTED = 0x5

	POWERDOWN           = 0x04
	ENTRYMODE           = 0x02
	EXTENDEDINSTRUCTION = 0x01

	FUNCTIONSET     = 0x20
	DISPLAY_CONTROL = 0x08
	SETYADDR        = 0x40
	SETXADDR        = 0x80

	SETTEMP = 0x04
	SETBIAS = 0x10
	SETVOP  = 0x80

	CLKCONST_1 = 8000
	CLKCONST_2 = 400

	LSBFIRST = 0
	MSBFIRST = 1

	LCD_CMD  = uint8(embd.Low)
	LCD_DATA = uint8(embd.High)
)

Variables

View Source
var (
	CHARSET [][5]uint8
)

Functions

This section is empty.

Types

type LCD

type LCD interface {
}

type PCD8544

type PCD8544 struct {
	PIN_SCLK uint8
	PIN_DIN  uint8
	PIN_DC   uint8
	PIN_CS   uint8
	PIN_RST  uint8
	CONTRAST uint8
	// contains filtered or unexported fields
}

func New

func New(clk uint8, din uint8, dc uint8, cs uint8, rst uint8, contrast uint8) *PCD8544

func (*PCD8544) Clear

func (p *PCD8544) Clear()

func (*PCD8544) Close

func (p *PCD8544) Close()

func (*PCD8544) CreateChar

func (p *PCD8544) CreateChar()

func (*PCD8544) Display

func (p *PCD8544) Display()

func (*PCD8544) Home

func (p *PCD8544) Home()

func (*PCD8544) NoDisplay

func (p *PCD8544) NoDisplay()

func (*PCD8544) SetContrast

func (p *PCD8544) SetContrast(level uint8)

func (*PCD8544) SetCursor

func (p *PCD8544) SetCursor(column uint8, line uint8)

func (*PCD8544) SetInverse

func (p *PCD8544) SetInverse(inverse bool)

func (*PCD8544) Write

func (p *PCD8544) Write(char uint8)

Jump to

Keyboard shortcuts

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