Skip to content

Commit c1adb0a

Browse files
authored
Merge pull request #12 from kattni/example-update
Update pins to be more universal.
2 parents 1598e48 + 8334bf2 commit c1adb0a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/epd_simpletest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
# create the spi device and pins we will need
1111
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
12-
ecs = digitalio.DigitalInOut(board.D10)
13-
dc = digitalio.DigitalInOut(board.D9)
14-
srcs = digitalio.DigitalInOut(board.D7) # can be None to use internal memory
15-
rst = digitalio.DigitalInOut(board.D11) # can be None to not use this pin
16-
busy = digitalio.DigitalInOut(board.D12) # can be None to not use this pin
12+
ecs = digitalio.DigitalInOut(board.D12)
13+
dc = digitalio.DigitalInOut(board.D11)
14+
srcs = digitalio.DigitalInOut(board.D10) # can be None to use internal memory
15+
rst = digitalio.DigitalInOut(board.D9) # can be None to not use this pin
16+
busy = digitalio.DigitalInOut(board.D5) # can be None to not use this pin
1717

1818
# give them all to our driver
1919
print("Creating display")

0 commit comments

Comments
 (0)