Skip to content

Commit d901fa8

Browse files
authored
fixes in ssd1351
1 parent 6630cc9 commit d901fa8

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

ssd1351/ssd1351.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ var (
2020

2121
// Device wraps an SPI connection.
2222
type Device struct {
23-
bus drivers.SPI
24-
dcPin pin.OutputFunc
25-
resetPin pin.OutputFunc
26-
csPin pin.OutputFunc
27-
enPin pin.OutputFunc
28-
rwPin pin.OutputFunc
29-
width int16
30-
height int16
31-
rowOffset int16
32-
columnOffset int16
33-
bufferLength int16
23+
bus drivers.SPI
24+
dcPin pin.OutputFunc
25+
resetPin pin.OutputFunc
26+
csPin pin.OutputFunc
27+
enPin pin.OutputFunc
28+
rwPin pin.OutputFunc
29+
width int16
30+
height int16
31+
rowOffset int16
32+
columnOffset int16
33+
bufferLength int16
3434
configurePins func()
3535
}
3636

@@ -46,11 +46,11 @@ type Config struct {
4646
func New(bus drivers.SPI, resetPin, dcPin, csPin, enPin, rwPin pin.Output) Device {
4747
return Device{
4848
bus: bus,
49-
dcPin: dcPin,
50-
resetPin: resetPin,
51-
csPin: csPin,
52-
enPin: enPin,
53-
rwPin: rwPin,
49+
dcPin: dcPin.Set,
50+
resetPin: resetPin.Set,
51+
csPin: csPin.Set,
52+
enPin: enPin.Set,
53+
rwPin: rwPin.Set,
5454
configurePins: func() {
5555
legacy.ConfigurePinOut(dcPin)
5656
legacy.ConfigurePinOut(resetPin)

0 commit comments

Comments
 (0)