Skip to content

Commit 6a3ac5b

Browse files
committed
Swap to board.SPI() on a Feather
1 parent 37ac937 commit 6a3ac5b

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

README.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,16 @@ Usage Example
6767
6868
import time
6969
import board
70-
import busio
7170
import displayio
7271
import adafruit_ssd1608
7372
7473
displayio.release_displays()
7574
76-
# This pinout works on a Metro and may need to be altered for other boards.
77-
78-
# For breadboarding
79-
spi = busio.SPI(board.SCL, board.SDA)
75+
# This pinout works on a Feather M4 and may need to be altered for other boards.
76+
spi = board.SPI() # Uses SCK and MOSI
8077
epd_cs = board.D9
81-
epd_dc = board.D8
82-
epd_reset = board.D7
78+
epd_dc = board.D10
79+
epd_reset = board.D5
8380
epd_busy = board.D6
8481
8582
display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset,

examples/ssd1608_simpletest.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,16 @@
77

88
import time
99
import board
10-
import busio
1110
import displayio
1211
import adafruit_ssd1608
1312

1413
displayio.release_displays()
1514

16-
# This pinout works on a Metro and may need to be altered for other boards.
17-
18-
# For breadboarding
19-
spi = busio.SPI(board.SCL, board.SDA)
15+
# This pinout works on a Feather M4 and may need to be altered for other boards.
16+
spi = board.SPI() # Uses SCK and MOSI
2017
epd_cs = board.D9
21-
epd_dc = board.D8
22-
epd_reset = board.D7
18+
epd_dc = board.D10
19+
epd_reset = board.D5
2320
epd_busy = board.D6
2421

2522
display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset,

0 commit comments

Comments
 (0)