From 396135da7b27e74477678ba8aa6658c20d8fccf5 Mon Sep 17 00:00:00 2001 From: sago35 Date: Mon, 26 Oct 2020 18:44:23 +0900 Subject: [PATCH] samd5x spi: change to use drivers.SPI --- ili9341/spi_atsamd51.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ili9341/spi_atsamd51.go b/ili9341/spi_atsamd51.go index 76ade44..801e6e6 100644 --- a/ili9341/spi_atsamd51.go +++ b/ili9341/spi_atsamd51.go @@ -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,