diff --git a/README.rst b/README.rst index c5981b3..c8965e6 100644 --- a/README.rst +++ b/README.rst @@ -71,6 +71,7 @@ Usage Example import time import board import displayio + import fourwire import adafruit_il0398 displayio.release_displays() @@ -82,7 +83,7 @@ Usage Example epd_reset = board.D5 epd_busy = board.D6 - display_bus = displayio.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, + display_bus = fourwire.FourWire(spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000) time.sleep(1) @@ -103,7 +104,7 @@ Usage Example g.append(t) - display.show(g) + display.root_group = g display.refresh() diff --git a/examples/il0398_4.2_color.py b/examples/il0398_4.2_color.py index 50c1a3d..8342b10 100644 --- a/examples/il0398_4.2_color.py +++ b/examples/il0398_4.2_color.py @@ -14,6 +14,7 @@ import time import board import displayio +import fourwire import adafruit_il0398 displayio.release_displays() @@ -25,7 +26,7 @@ epd_reset = board.D5 epd_busy = board.D6 -display_bus = displayio.FourWire( +display_bus = fourwire.FourWire( spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000 ) time.sleep(1) @@ -51,7 +52,7 @@ # t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader) g.append(t) - display.show(g) + display.root_group = g display.refresh() diff --git a/examples/il0398_simpletest.py b/examples/il0398_simpletest.py index c7a7d6e..b166fd9 100644 --- a/examples/il0398_simpletest.py +++ b/examples/il0398_simpletest.py @@ -12,6 +12,7 @@ import time import board import displayio +import fourwire import adafruit_il0398 displayio.release_displays() @@ -23,7 +24,7 @@ epd_reset = board.D5 epd_busy = board.D6 -display_bus = displayio.FourWire( +display_bus = fourwire.FourWire( spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000 ) time.sleep(1) @@ -44,7 +45,7 @@ # t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader) g.append(t) - display.show(g) + display.root_group = g display.refresh()