Skip to content

Commit 70a085f

Browse files
committed
Fix dcPin method call in tx function
1 parent 523daba commit 70a085f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssd1306/ssd1306_spi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (b *SPIBus) flush() error {
6262
// tx sends data to the display
6363
func (b *SPIBus) tx(data []byte, isCommand bool) error {
6464
b.csPin.High()
65-
b.dcPin.Set(!isCommand)
65+
b.dcPin(!isCommand)
6666
b.csPin.Low()
6767
err := b.wire.Tx(data, nil)
6868
b.csPin.High()

0 commit comments

Comments
 (0)