Skip to content

Commit

Permalink
Merge pull request #14 from FoamyGuy/remove_hardcoded_baudrate
Browse files Browse the repository at this point in the history
use the existing frequency from the spi object instead of hardcoded
  • Loading branch information
kattni committed Aug 17, 2020
2 parents 8dd1a7c + 46071fd commit 826f130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_tlc59711.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _write(self):
# Lock the SPI bus and configure it for the shift register.
while not self._spi.try_lock():
pass
self._spi.configure(baudrate=10000000, polarity=0, phase=0)
self._spi.configure(baudrate=self._spi.frequency, polarity=0, phase=0)
# Update the preamble of chip state in the first 4 bytes (32-bits)
# with the write command, function control bits, and brightness
# control register values.
Expand Down

0 comments on commit 826f130

Please sign in to comment.