Skip to content

Commit 1ef60cd

Browse files
committed
Make the SPI displays a little bit faster
Setting the SPI bus speed to 12MHz by default. Due to a bug in CP 2.x, that's the maximum speed supported on all boards. When it's fixed, 24MHz should be possible.
1 parent d47e0cc commit 1ef60cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_rgb_display/rgb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ def vline(self, x, y, height, color):
159159
class DisplaySPI(Display):
160160
"""Base class for SPI type devices"""
161161
#pylint: disable-msg=too-many-arguments
162-
def __init__(self, spi, dc, cs, rst=None, width=1, height=1, baudrate=1000000,
163-
polarity=0, phase=0):
162+
def __init__(self, spi, dc, cs, rst=None, width=1, height=1,
163+
baudrate=12000000, polarity=0, phase=0):
164164
self.spi_device = spi_device.SPIDevice(spi, cs, baudrate=baudrate,
165165
polarity=polarity, phase=phase)
166166
self.dc_pin = dc

0 commit comments

Comments
 (0)