Versions in this module Expand all Collapse all v1 v1.0.0 Jun 5, 2020 Changes in this version + var DefaultModes []ModeSetter = []ModeSetter + func BlinkOff(hd *HD44780) + func BlinkOn(hd *HD44780) + func CursorOff(hd *HD44780) + func CursorOn(hd *HD44780) + func DisplayOff(hd *HD44780) + func DisplayOn(hd *HD44780) + func Dots5x10(hd *HD44780) + func Dots5x8(hd *HD44780) + func EightBitMode(hd *HD44780) + func EntryDecrement(hd *HD44780) + func EntryIncrement(hd *HD44780) + func EntryShiftOff(hd *HD44780) + func EntryShiftOn(hd *HD44780) + func FourBitMode(hd *HD44780) + func OneLine(hd *HD44780) + func TwoLine(hd *HD44780) + type BacklightPolarity bool + const Negative + const Positive + type Connection interface + BacklightOff func() error + BacklightOn func() error + Close func() error + Write func(rs bool, data byte) error + type GPIOConnection struct + BLPolarity BacklightPolarity + Backlight embd.DigitalPin + D4 embd.DigitalPin + D5 embd.DigitalPin + D6 embd.DigitalPin + D7 embd.DigitalPin + EN embd.DigitalPin + RS embd.DigitalPin + func NewGPIOConnection(rs, en, d4, d5, d6, d7, backlight embd.DigitalPin, ...) *GPIOConnection + func (conn *GPIOConnection) BacklightOff() error + func (conn *GPIOConnection) BacklightOn() error + func (conn *GPIOConnection) Close() error + func (conn *GPIOConnection) Write(rs bool, data byte) error + type HD44780 struct + func New(bus Connection, rowAddr RowAddress, modes ...ModeSetter) (*HD44780, error) + func NewGPIO(rs, en, d4, d5, d6, d7, backlight interface{}, blPolarity BacklightPolarity, ...) (*HD44780, error) + func NewI2C(i2c embd.I2CBus, addr byte, pinMap I2CPinMap, rowAddr RowAddress, ...) (*HD44780, error) + func (hd *HD44780) BlinkEnabled() bool + func (hd *HD44780) BlinkOff() error + func (hd *HD44780) BlinkOn() error + func (hd *HD44780) Clear() error + func (hd *HD44780) Close() error + func (hd *HD44780) CursorEnabled() bool + func (hd *HD44780) CursorOff() error + func (hd *HD44780) CursorOn() error + func (hd *HD44780) DisplayEnabled() bool + func (hd *HD44780) DisplayOff() error + func (hd *HD44780) DisplayOn() error + func (hd *HD44780) Dots5x10Enabled() bool + func (hd *HD44780) EightBitModeEnabled() bool + func (hd *HD44780) EntryIncrementEnabled() bool + func (hd *HD44780) EntryShiftEnabled() bool + func (hd *HD44780) Home() error + func (hd *HD44780) SetCursor(col, row int) error + func (hd *HD44780) SetDDRamAddr(value byte) error + func (hd *HD44780) SetMode(modes ...ModeSetter) error + func (hd *HD44780) ShiftLeft() error + func (hd *HD44780) ShiftRight() error + func (hd *HD44780) TwoLineEnabled() bool + func (hd *HD44780) WriteChar(value byte) error + func (hd *HD44780) WriteInstruction(value byte) error + type I2CConnection struct + Addr byte + Backlight bool + I2C embd.I2CBus + PinMap I2CPinMap + func NewI2CConnection(i2c embd.I2CBus, addr byte, pinMap I2CPinMap) *I2CConnection + func (conn *I2CConnection) BacklightOff() error + func (conn *I2CConnection) BacklightOn() error + func (conn *I2CConnection) Close() error + func (conn *I2CConnection) Write(rs bool, data byte) error + type I2CPinMap struct + BLPolarity BacklightPolarity + Backlight byte + D4 byte + D5 byte + D6 byte + D7 byte + EN byte + RS byte + RW byte + var MJKDZPinMap I2CPinMap = I2CPinMap{ ... } + var PCF8574PinMap I2CPinMap = I2CPinMap{ ... } + type ModeSetter func(*HD44780) + type RowAddress [4]byte + var RowAddress16Col RowAddress = [4]byte{ ... } + var RowAddress20Col RowAddress = [4]byte{ ... }