Skip to content

Commit 3446470

Browse files
committed
displayio API update
1 parent 4d945fe commit 3446470

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_turtle.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
try:
3838
from typing import List, Optional, Tuple, Union
39+
40+
import busdisplay
3941
except ImportError:
4042
pass
4143

@@ -212,7 +214,7 @@ def __repr__(self) -> str:
212214
class turtle:
213215
"""A Turtle that can be given commands to draw."""
214216

215-
def __init__(self, display: Optional[displayio.Display] = None, scale: float = 1) -> None:
217+
def __init__(self, display: Optional[busdisplay.BusDisplay] = None, scale: float = 1) -> None:
216218
if display:
217219
self._display = display
218220
else:

0 commit comments

Comments
 (0)