Skip to content

Commit d41bc0b

Browse files
mateusznowakdevdeadprogram
authored andcommitted
fix: remove time.Sleep from SSD1306 SPI transfer code
1 parent e7f9016 commit d41bc0b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ssd1306/ssd1306.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,15 +322,13 @@ func (b *SPIBus) tx(data []byte, isCommand bool) error {
322322

323323
if isCommand {
324324
b.csPin.High()
325-
time.Sleep(1 * time.Millisecond)
326325
b.dcPin.Low()
327326
b.csPin.Low()
328327

329328
err = b.wire.Tx(data, nil)
330329
b.csPin.High()
331330
} else {
332331
b.csPin.High()
333-
time.Sleep(1 * time.Millisecond)
334332
b.dcPin.High()
335333
b.csPin.Low()
336334

0 commit comments

Comments
 (0)