From 46071fdd41fed8880dbcb4ce639e2d779ff38731 Mon Sep 17 00:00:00 2001 From: FoamyGuy Date: Tue, 5 May 2020 17:30:08 -0500 Subject: [PATCH] use the existing frequency from the spi object instead of hardcoded value --- adafruit_tlc59711.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_tlc59711.py b/adafruit_tlc59711.py index 4693d5d..8137d52 100644 --- a/adafruit_tlc59711.py +++ b/adafruit_tlc59711.py @@ -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.