Skip to content

Commit 2aa45ae

Browse files
authored
Merge pull request #15 from deshipu/speedup
Make the SPI displays a little bit faster
2 parents d47e0cc + 1ef60cd commit 2aa45ae

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)