From bca1c90b5eb3022317089458f868c13265276546 Mon Sep 17 00:00:00 2001 From: George Sexton Date: Fri, 4 Apr 2025 14:42:28 -0600 Subject: [PATCH] Fix incorrect usage. a 'pin number' was passed to port.Connect(), when that parameter is actually the bit count. --- inky/inky.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inky/inky.go b/inky/inky.go index 6cdd610..0c10537 100644 --- a/inky/inky.go +++ b/inky/inky.go @@ -75,7 +75,7 @@ func New(p spi.Port, dc gpio.PinOut, reset gpio.PinOut, busy gpio.PinIn, o *Opts return nil, fmt.Errorf("unsupported color: %v", o.ModelColor) } - c, err := p.Connect(488*physic.KiloHertz, spi.Mode0 | spi.NoCS, 8) + c, err := p.Connect(488*physic.KiloHertz, spi.Mode0|spi.NoCS, 8) if err != nil { return nil, fmt.Errorf("failed to connect to inky over spi: %v", err) }