Skip to content

Commit 826f130

Browse files
authored
Merge pull request #14 from FoamyGuy/remove_hardcoded_baudrate
use the existing frequency from the spi object instead of hardcoded
2 parents 8dd1a7c + 46071fd commit 826f130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_tlc59711.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _write(self):
174174
# Lock the SPI bus and configure it for the shift register.
175175
while not self._spi.try_lock():
176176
pass
177-
self._spi.configure(baudrate=10000000, polarity=0, phase=0)
177+
self._spi.configure(baudrate=self._spi.frequency, polarity=0, phase=0)
178178
# Update the preamble of chip state in the first 4 bytes (32-bits)
179179
# with the write command, function control bits, and brightness
180180
# control register values.

0 commit comments

Comments
 (0)