hd44780

package
v0.221208.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command byte
const (
	CommandClear   Command = 0x01
	CommandReturn  Command = 0x02
	CommandControl Command = 0x08
	CommandAddress Command = 0x80
)

type Control

type Control byte
const (
	ControlOn         Control = 0x04
	ControlUnderscore Control = 0x02
	ControlBlink      Control = 0x01
)

type LCD

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

func (*LCD) Clear

func (self *LCD) Clear()

func (*LCD) Command

func (self *LCD) Command(c Command)

func (*LCD) Control

func (self *LCD) Control() Control

func (*LCD) CursorYX

func (self *LCD) CursorYX(row uint8, column uint8) bool

func (*LCD) Data

func (self *LCD) Data(b byte)

func (*LCD) Init

func (self *LCD) Init(chipName string, pinmap PinMap, page1 bool) error

func (*LCD) Return

func (self *LCD) Return()

func (*LCD) SetControl

func (self *LCD) SetControl(new Control) Control

func (*LCD) SetEntryMode

func (self *LCD) SetEntryMode(right, shift bool)

func (*LCD) SetFunction

func (self *LCD) SetFunction(bits8, page1 bool)

func (*LCD) Write

func (self *LCD) Write(bs []byte)

type PinMap

type PinMap struct {
	RS string `hcl:"rs"`
	RW string `hcl:"rw"`
	E  string `hcl:"e"`
	D4 string `hcl:"d4"`
	D5 string `hcl:"d5"`
	D6 string `hcl:"d6"`
	D7 string `hcl:"d7"`
}

Jump to

Keyboard shortcuts

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