Skip to content

Commit

Permalink
Merge pull request #12 from kattni/example-update
Browse files Browse the repository at this point in the history
Update pins to be more universal.
  • Loading branch information
kattni committed Apr 12, 2019
2 parents 1598e48 + 8334bf2 commit c1adb0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/epd_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

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

# give them all to our driver
print("Creating display")
Expand Down

0 comments on commit c1adb0a

Please sign in to comment.