Skip to content

Commit 112bfe1

Browse files
authored
Fix function calls in ssd1331.go
1 parent 1529bda commit 112bfe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ssd1331/ssd1331.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (d *Device) FillRectangle(x, y, width, height int16, c color.RGBA) error {
152152
x >= d.width || (x+width) > d.width || y >= d.height || (y+height) > d.height {
153153
return errors.New("rectangle coordinates outside display area")
154154
}
155-
d.setWindow(x, y, width, height)
155+
dWindow(x, y, width, height)
156156
c565 := RGBATo565(c)
157157
c1 := uint8(c565 >> 8)
158158
c2 := uint8(c565)
@@ -253,7 +253,7 @@ func (d *Device) Data(data uint8) {
253253

254254
// Tx sends data to the display
255255
func (d *Device) Tx(data []byte, isCommand bool) {
256-
d.dcPin.Set(!isCommand)
256+
d.dcPin(!isCommand)
257257
d.bus.Tx(data, nil)
258258
}
259259

0 commit comments

Comments
 (0)