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:
deadprogram
2025-12-14 11:19:41 +01:00
parent b561dc36f2
commit 51561d4eab
2 changed files with 11 additions and 3 deletions
+8
View File
@@ -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)
}