mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-03 06:27:47 +00:00
hd44780: fix 4-bit data length flag
This commit is contained in:
committed by
Ron Evans
parent
80913d5fe7
commit
905fc6fce3
+1
-1
@@ -126,7 +126,7 @@ func (d *Device) Configure(cfg Config) error {
|
||||
}
|
||||
|
||||
if d.datalength == DATA_LENGTH_4BIT {
|
||||
d.bus.Write([]byte{DATA_LENGTH_4BIT >> 4})
|
||||
d.bus.Write([]byte{DATA_LENGTH_4BIT})
|
||||
}
|
||||
|
||||
// Busy flag is now accessible
|
||||
|
||||
@@ -26,7 +26,7 @@ const (
|
||||
|
||||
FUNCTION_MODE = 0x20
|
||||
DATA_LENGTH_8BIT = FUNCTION_MODE | 0x10
|
||||
DATA_LENGTH_4BIT = FUNCTION_MODE | 0x0
|
||||
DATA_LENGTH_4BIT = FUNCTION_MODE | 0x2
|
||||
TWO_LINE = FUNCTION_MODE | 0x8
|
||||
ONE_LINE = FUNCTION_MODE | 0x0
|
||||
FONT_5X10 = FUNCTION_MODE | 0x4
|
||||
|
||||
Reference in New Issue
Block a user