Skip to content

Commit da41abc

Browse files
Melissa LeBlanc-WilliamsMelissa LeBlanc-Williams
Melissa LeBlanc-Williams
authored and
Melissa LeBlanc-Williams
committed
Change SPI to 24MHz
1 parent 2657241 commit da41abc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Usage Example
3535
from adafruit_st7789 import ST7789
3636
3737
spi = board.SPI()
38+
while not spi.try_lock():
39+
pass
40+
spi.configure(baudrate=24000000) # Configure SPI for 24MHz
41+
spi.unlock()
3842
tft_cs = board.D5
3943
tft_dc = board.D6
4044

examples/st7789_simpletest.py

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
from adafruit_st7789 import ST7789
99

1010
spi = board.SPI()
11+
while not spi.try_lock():
12+
pass
13+
spi.configure(baudrate=24000000) # Configure SPI for 24MHz
14+
spi.unlock()
1115
tft_cs = board.D5
1216
tft_dc = board.D6
1317

0 commit comments

Comments
 (0)