chore: update all SPI usage to use either *machine.SPI or drivers.SPI to accomodate recent switch in machine package

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2025-03-11 18:27:15 +01:00
committed by Ron Evans
parent 6e04decf19
commit 156d6e7c9c
18 changed files with 33 additions and 28 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ type Config struct {
}
type Device struct {
bus machine.SPI
bus *machine.SPI
cs machine.Pin
dc machine.Pin
rst machine.Pin
@@ -79,7 +79,7 @@ var partialRefresh = [159]uint8{
}
// New returns a new epd1in54 driver. Pass in a fully configured SPI bus.
func New(bus machine.SPI, csPin, dcPin, rstPin, busyPin machine.Pin) Device {
func New(bus *machine.SPI, csPin, dcPin, rstPin, busyPin machine.Pin) Device {
return Device{
buffer: make([]uint8, (uint32(Width)*uint32(Height))/8),
bus: bus,