Skip to content

Commit b96f0fe

Browse files
authored
Merge pull request #15 from makermelissa/master
Added software SPI as an option for Shield example
2 parents 55fb182 + 3444788 commit b96f0fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/ili9341_shield_simpletest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
# Release any resources currently in use for the displays
1414
displayio.release_displays()
1515

16+
# Use Hardware SPI
1617
spi = board.SPI()
18+
19+
# Use Software SPI if you have a shield with pins 11-13 jumpered
20+
#import busio
21+
#spi = busio.SPI(board.D11, board.D13)
22+
1723
tft_cs = board.D10
1824
tft_dc = board.D9
1925

0 commit comments

Comments
 (0)