mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 05:13:23 +00:00
st7789: add Bus interface to accomodate both SPI and parallel connections to display
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package st7789
|
||||
|
||||
// Bus is the interface that wraps the basic Tx and Transfer methods
|
||||
// for communication buses like SPI or Parallel.
|
||||
type Bus interface {
|
||||
Tx(w, r []byte) error
|
||||
Transfer(w byte) (byte, error)
|
||||
}
|
||||
Reference in New Issue
Block a user