SetPixel removed, formatting

This commit is contained in:
k-brk
2019-05-04 15:37:10 +02:00
committed by Ron Evans
parent 4560c61c61
commit ba4de1efb8
5 changed files with 52 additions and 31 deletions
+13 -2
View File
@@ -8,9 +8,20 @@ import (
func main() {
lcd, _ := hd44780.NewGPIO4Bit([]uint8{machine.P0, machine.P1, machine.P2, machine.P3}, machine.P4, machine.P5, machine.P6)
lcd, _ := hd44780.NewGPIO4Bit(
[]uint8{machine.P0, machine.P1, machine.P2, machine.P3},
machine.P4,
machine.P5,
machine.P6,
)
lcd.Configure(hd44780.Config{
Width: 16,
Height: 2,
CursorOnOff: true,
CursorBlink: true,
})
lcd.Configure(hd44780.Config{Width: 16, Height: 2, CursorOnOff: true, CursorBlink: true})
lcd.CreateCharacter(0x0, []byte{0x04, 0x0E, 0x0E, 0x0E, 0x0E, 0x1F, 0x04, 0x0})
lcd.Write([]byte{0x0})
lcd.Display()
+13 -2
View File
@@ -8,9 +8,20 @@ import (
func main() {
lcd, _ := hd44780.NewGPIO4Bit([]uint8{machine.P0, machine.P1, machine.P2, machine.P3}, machine.P4, machine.P5, machine.P6)
lcd, _ := hd44780.NewGPIO4Bit(
[]uint8{machine.P0, machine.P1, machine.P2, machine.P3},
machine.P4,
machine.P5,
machine.P6,
)
lcd.Configure(hd44780.Config{
Width: 16,
Height: 2,
CursorOnOff: true,
CursorBlink: true,
})
lcd.Configure(hd44780.Config{Width: 16, Height: 2, CursorOnOff: true, CursorBlink: true})
lcd.Write([]byte("This is a long line"))
lcd.Display()