Skip to content

Commit 52bd914

Browse files
authored
Merge pull request #3 from FoamyGuy/displayio_api_updates
displayio api updates
2 parents b606a2d + 321b395 commit 52bd914

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Usage Example
9494
import time
9595
import board
9696
import displayio
97+
import fourwire
9798
import adafruit_ek79686
9899
99100
# Used to ensure the display is free in CircuitPython
@@ -107,7 +108,7 @@ Usage Example
107108
epd_busy = board.D6
108109
109110
# Create the displayio connection to the display pins
110-
display_bus = displayio.FourWire(
111+
display_bus = fourwire.FourWire(
111112
spi, command=epd_dc, chip_select=epd_cs, reset=epd_reset, baudrate=1000000
112113
)
113114
time.sleep(1) # Wait a bit

adafruit_ek79686.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@
2828
import math
2929

3030
from epaperdisplay import EPaperDisplay
31-
from fourwire import FourWire
31+
32+
try:
33+
import typing
34+
35+
from fourwire import FourWire
36+
except ImportError:
37+
pass
3238

3339
__version__ = "0.0.0+auto.0"
3440
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_EK79686.git"

0 commit comments

Comments
 (0)