Skip to content

Commit c80bac5

Browse files
committed
use existing spi baudrate instead of hardcoded
1 parent 60d3653 commit c80bac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_tlc5947.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def write(self):
158158
# Lock the SPI bus and configure it for the shift register.
159159
while not self._spi.try_lock():
160160
pass
161-
self._spi.configure(baudrate=1000000, polarity=0, phase=0, bits=8)
161+
self._spi.configure(baudrate=self._spi.frequency, polarity=0, phase=0, bits=8)
162162
# First ensure latch is low.
163163
self._latch.value = False
164164
# Write out the bits.

0 commit comments

Comments
 (0)