samd5x spi: change to use drivers.SPI

This commit is contained in:
sago35
2020-10-26 18:44:23 +09:00
parent d9700779f7
commit 396135da7b
+4 -2
View File
@@ -4,15 +4,17 @@ package ili9341
import (
"machine"
"tinygo.org/x/drivers"
)
type spiDriver struct {
bus machine.SPI
bus drivers.SPI
}
var txBuf [2]uint8
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,