Skip to content
Merged
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Usage Example
epd_reset = board.D11
epd_busy = board.D12

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

Expand All @@ -138,7 +138,7 @@ Usage Example
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
g.append(t)

display.show(g)
display.root_group = g

display.refresh()

Expand Down
4 changes: 2 additions & 2 deletions adafruit_spd1656.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import struct

import displayio
import epaperdisplay

__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SPD1656.git"
Expand All @@ -48,7 +48,7 @@


# pylint: disable=too-few-public-methods
class SPD1656(displayio.EPaperDisplay):
class SPD1656(epaperdisplay.EPaperDisplay):
r"""SPD1656 display driver

:param bus: The data bus the display is on
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
# autodoc_mock_imports = ["digitalio", "busio"]
autodoc_mock_imports = ["epaperdisplay"]

autodoc_preserve_defaults = True

Expand Down
6 changes: 4 additions & 2 deletions examples/spd1656_4in_acep.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
import time
import board
import displayio
import fourwire
import adafruit_spd1656


displayio.release_displays()

# This pinout works on a Feather RP2040 and may need to be altered for other boards.
Expand All @@ -22,7 +24,7 @@
epd_reset = board.D11
epd_busy = board.D12

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

Expand All @@ -39,7 +41,7 @@
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
g.append(t)

display.show(g)
display.root_group = g

display.refresh()

Expand Down
6 changes: 4 additions & 2 deletions examples/spd1656_color_stripes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
import board
import displayio
import bitmaptools
import fourwire
import adafruit_spd1656


displayio.release_displays()

# This pinout works on a Feather RP2040 and may need to be altered for other boards.
Expand All @@ -21,7 +23,7 @@
epd_reset = board.D11
epd_busy = board.D12

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

Expand Down Expand Up @@ -56,7 +58,7 @@
tg = displayio.TileGrid(bitmap=bmp, pixel_shader=p)
g.append(tg)

display.show(g)
display.root_group = g

display.refresh()

Expand Down
6 changes: 4 additions & 2 deletions examples/spd1656_colors_and_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
import terminalio
import bitmaptools
from adafruit_display_text.bitmap_label import Label
import fourwire
import adafruit_spd1656


displayio.release_displays()

# This pinout works on a Feather RP2040 and may need to be altered for other boards.
Expand All @@ -24,7 +26,7 @@
epd_reset = board.D11
epd_busy = board.D12

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

Expand Down Expand Up @@ -55,7 +57,7 @@
lbl.anchored_position = (display.width // 2, display.height // 2)
g.append(lbl)

display.show(g)
display.root_group = g
display.refresh()

while True:
Expand Down
6 changes: 4 additions & 2 deletions examples/spd1656_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
import time
import board
import displayio
import fourwire
import adafruit_spd1656


displayio.release_displays()

# This pinout works on a Feather RP2040 and may need to be altered for other boards.
Expand All @@ -21,7 +23,7 @@
epd_reset = board.D11
epd_busy = board.D12

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

Expand All @@ -38,7 +40,7 @@
t = displayio.TileGrid(pic, pixel_shader=pic.pixel_shader)
g.append(t)

display.show(g)
display.root_group = g

display.refresh()

Expand Down