From 374e2dfe1d82c9591651acbd63f3a459a398174f Mon Sep 17 00:00:00 2001 From: sago35 Date: Wed, 1 Sep 2021 18:52:19 +0900 Subject: [PATCH] ili9341: change to use drivers.SPI interface --- ili9341/spi.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ili9341/spi.go b/ili9341/spi.go index 2ecd3f5..462f39a 100644 --- a/ili9341/spi.go +++ b/ili9341/spi.go @@ -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,