Skip to content

Swap to board.SPI() on a Feather #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,24 @@ Usage Example

import time
import board
import busio
import displayio
import adafruit_il0398

displayio.release_displays()

# This pinout works on a Metro and may need to be altered for other boards.
# For breadboarding
spi = busio.SPI(board.SCL, board.SDA)
# This pinout works on a Feather M4 and may need to be altered for other boards.
spi = board.SPI() # Uses SCK and MOSI
epd_cs = board.D9
epd_dc = board.D8
epd_reset = board.D7
epd_dc = board.D10
epd_reset = board.D5
epd_busy = board.D6

display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset,
baudrate=1000000)
time.sleep(1)

display = adafruit_il0398.IL0398(display_bus, width=400, height=300, seconds_per_frame=20, busy_pin=epd_busy)
display = adafruit_il0398.IL0398(display_bus, width=400, height=300, seconds_per_frame=20,
busy_pin=epd_busy)

g = displayio.Group()

Expand Down
10 changes: 4 additions & 6 deletions examples/il0398_4.2_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@

import time
import board
import busio
import displayio
import adafruit_il0398

displayio.release_displays()

# This pinout works on a Metro and may need to be altered for other boards.
# For breadboarding
spi = busio.SPI(board.SCL, board.SDA)
# This pinout works on a Feather M4 and may need to be altered for other boards.
spi = board.SPI() # Uses SCK and MOSI
epd_cs = board.D9
epd_dc = board.D8
epd_reset = board.D7
epd_dc = board.D10
epd_reset = board.D5
epd_busy = board.D6

display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset,
Expand Down
10 changes: 4 additions & 6 deletions examples/il0398_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@

import time
import board
import busio
import displayio
import adafruit_il0398

displayio.release_displays()

# This pinout works on a Metro and may need to be altered for other boards.
# For breadboarding
spi = busio.SPI(board.SCL, board.SDA)
# This pinout works on a Feather M4 and may need to be altered for other boards.
spi = board.SPI() # Uses SCK and MOSI
epd_cs = board.D9
epd_dc = board.D8
epd_reset = board.D7
epd_dc = board.D10
epd_reset = board.D5
epd_busy = board.D6

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