Skip to content

Commit

Permalink
Merge pull request #15 from prcutler/root-group-fix
Browse files Browse the repository at this point in the history
Update to use fourwire and root_group for CP9 compatibility
  • Loading branch information
dhalbert authored Nov 3, 2023
2 parents f71edfb + 1b6231a commit 64486c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Usage Example
import time
import board
import displayio
import fourwire
import adafruit_il0398
displayio.release_displays()
Expand All @@ -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)
Expand All @@ -103,7 +104,7 @@ Usage Example
g.append(t)
display.show(g)
display.root_group = g
display.refresh()
Expand Down
5 changes: 3 additions & 2 deletions examples/il0398_4.2_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import time
import board
import displayio
import fourwire
import adafruit_il0398

displayio.release_displays()
Expand All @@ -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)
Expand All @@ -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()

Expand Down
5 changes: 3 additions & 2 deletions examples/il0398_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import time
import board
import displayio
import fourwire
import adafruit_il0398

displayio.release_displays()
Expand All @@ -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)
Expand All @@ -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()

Expand Down

0 comments on commit 64486c8

Please sign in to comment.