Add: 1251 5x7 font
This commit is contained in:
@ -200,6 +200,8 @@ func (d *displayMt12232a) GetBounds() image.Rectangle {
|
||||
}
|
||||
|
||||
func (d *displayMt12232a) Flush(img *image.Gray) error {
|
||||
st := time.Now()
|
||||
|
||||
for p := byte(0); p < 4; p++ {
|
||||
d.dev.WriteCode(0, (3-p)|0xB8)
|
||||
d.dev.WriteCode(0, 0x13)
|
||||
@ -230,6 +232,7 @@ func (d *displayMt12232a) Flush(img *image.Gray) error {
|
||||
})
|
||||
}
|
||||
}
|
||||
d.logger.Println("Flush time:", time.Since(st))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user