lcd

package
Version: 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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// commands
	LCD_CLEARDISPLAY   = 0x01
	LCD_RETURNHOME     = 0x02
	LCD_ENTRYMODESET   = 0x04
	LCD_DISPLAYCONTROL = 0x08
	LCD_CURSORSHIFT    = 0x10
	LCD_FUNCTIONSET    = 0x20
	LCD_SETCGRAMADDR   = 0x40
	LCD_SETDDRAMADDR   = 0x80
	// flags for display entry mode
	LCD_ENTRYRIGHT          = 0x00
	LCD_ENTRYLEFT           = 0x02
	LCD_ENTRYSHIFTINCREMENT = 0x01
	LCD_ENTRYSHIFTDECREMENT = 0x00
	// flags for display on/off control
	LCD_DISPLAYON  = 0x04
	LCD_DISPLAYOFF = 0x00
	LCD_CURSORON   = 0x02
	LCD_CURSOROFF  = 0x00
	LCD_BLINKON    = 0x01
	LCD_BLINKOFF   = 0x00
	// flags for display/cursor shift
	LCD_DISPLAYMOVE = 0x08
	LCD_CURSORMOVE  = 0x00
	LCD_MOVERIGHT   = 0x04
	LCD_MOVELEFT    = 0x00
	// flags for function set
	LCD_8BITMODE = 0x10
	LCD_4BITMODE = 0x00
	LCD_2LINE    = 0x08
	LCD_1LINE    = 0x00
	LCD_5x10DOTS = 0x04
	LCD_5x8DOTS  = 0x00
)

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(rs, rw, byte, ep byte, ds ...byte) *LCD

func (*LCD) AutoScroll

func (this *LCD) AutoScroll()

This will 'right justify' text from the cursor

func (*LCD) Begin

func (this *LCD) Begin(cols, lines byte, dotsize byte)
func (this *LCD) Blink()

func (*LCD) Clear

func (this *LCD) Clear()

func (*LCD) CreateChar

func (this *LCD) CreateChar(location byte, charmap [8]byte)

func (*LCD) Cursor

func (this *LCD) Cursor()

func (*LCD) Display

func (this *LCD) Display()

func (*LCD) Home

func (this *LCD) Home()

func (*LCD) LeftToRight

func (this *LCD) LeftToRight()

This is for text that flows Left to Right

func (*LCD) NoAutoScroll

func (this *LCD) NoAutoScroll()

This will 'left justify' text from the cursor

func (this *LCD) NoBlink()

func (*LCD) NoCursor

func (this *LCD) NoCursor()

func (*LCD) NoDisplay

func (this *LCD) NoDisplay()

func (*LCD) RightToLeft

func (this *LCD) RightToLeft()

This is for text that flows Right to Left

func (*LCD) ScrollDisplayLeft

func (this *LCD) ScrollDisplayLeft()

func (*LCD) ScrollDisplayRight

func (this *LCD) ScrollDisplayRight()

func (*LCD) SetCursor

func (this *LCD) SetCursor(col, row byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL