ili9341: change to use drivers.SPI interface

This commit is contained in:
sago35
2021-09-01 18:52:19 +09:00
committed by Ron Evans
parent b35aab6d61
commit 374e2dfe1d
+4 -2
View File
@@ -4,15 +4,17 @@ package ili9341
import (
"machine"
"tinygo.org/x/drivers"
)
var buf [64]byte
type spiDriver struct {
bus machine.SPI
bus drivers.SPI
}
func NewSPI(bus machine.SPI, dc, cs, rst machine.Pin) *Device {
func NewSPI(bus drivers.SPI, dc, cs, rst machine.Pin) *Device {
return &Device{
dc: dc,
cs: cs,