Documentation
¶
Index ¶
- Constants
- Variables
- func Close()
- func Open()
- func SetCustomCharacters(l LCDI, characters []Character)
- type Character
- type LCD
- func (l *LCD) Clear()
- func (l *LCD) Close()
- func (l *LCD) CreateChar(position uint8, data Character)
- func (l *LCD) DisplayMode(display, cursor, blink bool)
- func (l *LCD) EntryModeSet(increment, shift bool)
- func (l *LCD) Initialize()
- func (l *LCD) Reset()
- func (l *LCD) ReturnHome()
- func (l *LCD) Width() int
- func (l *LCD) Write(data uint8, mode bool)
- func (l *LCD) WriteLine(s string, line LineNumber)
- type LCDI
- type LineNumber
Constants ¶
View Source
const ( RSData = true // sending data RSInstruction = false // sending an instruction Line1 = LineNumber(0x80) // address for the 1st line Line2 = LineNumber(0xC0) // address for the 2nd line )
Variables ¶
View Source
var ( EnableDelay = 1 * time.Microsecond ExecutionTimeDefault = 40 * time.Microsecond ExecutionTimeReturnHome = 1520 * time.Microsecond )
Functions ¶
func SetCustomCharacters ¶
Types ¶
type LCD ¶
type LCD struct {
RS, E rpio.Pin
DataPins []rpio.Pin
LineWidth int
// contains filtered or unexported fields
}
func (*LCD) CreateChar ¶
func (*LCD) DisplayMode ¶
DisplayMode function set the display modes
func (*LCD) WriteLine ¶
func (l *LCD) WriteLine(s string, line LineNumber)
WriteLine function writes a single line fo text to the LCD if line length exceeds the linelength of the LCD, aslice will be used
type LineNumber ¶
type LineNumber uint8
Click to show internal directories.
Click to hide internal directories.