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

@ -10,6 +10,10 @@ import (
"github.com/stianeikeland/go-rpio/v4"
)
const (
waitReadyTimeout = time.Microsecond
)
type mt12232a struct {
logger *log.Logger
@ -154,7 +158,7 @@ func (d *mt12232a) readByte(cd, cs rpio.State) (byte, error) {
func (d *mt12232a) waitReady(cs rpio.State) error {
// d.pinCS.Write(cs) // Select cristals
// return d.dev.WaitReady()
time.Sleep(time.Microsecond)
time.Sleep(waitReadyTimeout)
return nil
}