Skip to content

Commit d231891

Browse files
authored
Fix pin usage in ssd1351
1 parent 112bfe1 commit d231891

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ssd1351/ssd1351.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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.Set,
50-
resetPin: resetPin.Set,
51-
csPin: csPin.Set,
52-
enPin: enPin.Set,
53-
rwPin: rwPin.Set,
49+
dcPin: dcPin,
50+
resetPin: resetPin,
51+
csPin: csPin,
52+
enPin: enPin,
53+
rwPin: rwPin,
5454
configurePins = func() {
5555
legacy.ConfigurePinOut(dcPin)
5656
legacy.ConfigurePinOut(resetPin)
@@ -283,7 +283,7 @@ func (d *Device) Data(data uint8) {
283283

284284
// Tx sends data to the display
285285
func (d *Device) Tx(data []byte, isCommand bool) {
286-
d.dcPin.Set(!isCommand)
286+
d.dcPin(!isCommand)
287287
d.csPin.Low()
288288
d.bus.Tx(data, nil)
289289
d.csPin.High()

0 commit comments

Comments
 (0)