Add: 1251 5x7 font

This commit is contained in:
Andrey Egorov
2024-09-15 20:21:57 +03:00
parent 5d67d667d7
commit eff00d2351
8 changed files with 349 additions and 69 deletions

View File

@ -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
}