diff --git a/README.rst b/README.rst index d24b246..404a919 100644 --- a/README.rst +++ b/README.rst @@ -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() diff --git a/examples/il0398_4.2_color.py b/examples/il0398_4.2_color.py index 7aa0aee..29e7eaa 100644 --- a/examples/il0398_4.2_color.py +++ b/examples/il0398_4.2_color.py @@ -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, diff --git a/examples/il0398_simpletest.py b/examples/il0398_simpletest.py index c1d0365..3c25afd 100644 --- a/examples/il0398_simpletest.py +++ b/examples/il0398_simpletest.py @@ -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,