fix: remove time.Sleep from SSD1306 SPI transfer code

This commit is contained in:
Mateusz Nowak
2025-05-07 00:06:12 +02:00
committed by Ron Evans
parent e7f90166ad
commit d41bc0b85f
-2
View File
@@ -322,7 +322,6 @@ func (b *SPIBus) tx(data []byte, isCommand bool) error {
if isCommand {
b.csPin.High()
time.Sleep(1 * time.Millisecond)
b.dcPin.Low()
b.csPin.Low()
@@ -330,7 +329,6 @@ func (b *SPIBus) tx(data []byte, isCommand bool) error {
b.csPin.High()
} else {
b.csPin.High()
time.Sleep(1 * time.Millisecond)
b.dcPin.High()
b.csPin.Low()