package
0.0.0-20170508013040-d3d8c0c5c68d
Repository: https://github.com/kidoman/embd.git
Documentation: pkg.go.dev
# Functions
BlinkOff is a ModeSetter that sets the HD44780 to cursor blink off mode.
BlinkOn is a ModeSetter that sets the HD44780 to cursor blink on mode.
CursorOff is a ModeSetter that sets the HD44780 to cursor off mode.
CursorOn is a ModeSetter that sets the HD44780 to cursor on mode.
DisplayOff is a ModeSetter that sets the HD44780 to display off mode.
DisplayOn is a ModeSetter that sets the HD44780 to display on mode.
Dots5x10 is a ModeSetter that sets the HD44780 to 5x10-pixel character mode.
Dots5x8 is a ModeSetter that sets the HD44780 to 5x8-pixel character mode.
EightBitMode is a ModeSetter that sets the HD44780 to 8-bit bus mode.
EntryDecrement is a ModeSetter that sets the HD44780 to entry decrement mode.
EntryIncrement is a ModeSetter that sets the HD44780 to entry increment mode.
EntryShiftOff is a ModeSetter that sets the HD44780 to entry shift off mode.
EntryShiftOn is a ModeSetter that sets the HD44780 to entry shift on mode.
FourBitMode is a ModeSetter that sets the HD44780 to 4-bit bus mode.
New creates a new HD44780 connected by a Connection bus.
NewGPIO creates a new HD44780 connected by a 4-bit GPIO bus.
NewGPIOConnection returns a new Connection based on a 4-bit GPIO bus.
NewI2C creates a new HD44780 connected by an I²C bus.
NewI2CConnection returns a new Connection based on an I²C bus.
OneLine is a ModeSetter that sets the HD44780 to 1-line display mode.
TwoLine is a ModeSetter that sets the HD44780 to 2-line display mode.
# Variables
DefaultModes are the default initialization modes for an HD44780.
MJKDZPinMap is the standard pin mapping for an MJKDZ-based I²C backpack.
PCF8574PinMap is the standard pin mapping for a PCF8574-based I²C backpack.
RowAddress16Col are row addresses for a 16-column display.
RowAddress20Col are row addresses for a 20-column display.
# Structs
GPIOConnection implements Connection using a 4-bit GPIO bus.
HD44780 represents an HD44780-compatible character LCD controller.
I2CConnection implements Connection using an I²C bus.
I2CPinMap represents a mapping between the pins on an I²C port expander and the pins on the HD44780 controller.
# Interfaces
Connection abstracts the different methods of communicating with an HD44780.
# Type aliases
BacklightPolarity is used to set the polarity of the backlight switch, either positive or negative.
ModeSetter defines a function used for setting modes on an HD44780.
RowAddress defines the cursor (DDRAM) address of the first column of each row, up to 4 rows.