Add: mt12232a lib
This commit is contained in:
@ -16,6 +16,7 @@ const (
|
||||
|
||||
// Interface for MT displays (do not set cristals bits)
|
||||
type Device interface {
|
||||
Reset()
|
||||
WriteByte(b byte, cd rpio.State)
|
||||
ReadByte(cd rpio.State) byte
|
||||
|
||||
@ -53,6 +54,15 @@ func New(logger *log.Logger, pins DevicePins) Device {
|
||||
}
|
||||
}
|
||||
|
||||
func (d *device) Reset() {
|
||||
d.PinA0.Output()
|
||||
d.PinRW.Output()
|
||||
d.PinE.Output()
|
||||
d.PinRES.Output()
|
||||
d.busOutput()
|
||||
d.PinE.Low()
|
||||
}
|
||||
|
||||
func (d *device) WriteByte(b byte, cd rpio.State) {
|
||||
// d.logger.Println("Write byte", b, cd, l, r)
|
||||
d.busOutput()
|
||||
|
Reference in New Issue
Block a user