Skip to content

Displayio api update #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions adafruit_cursorcontrol/cursorcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
try:
from types import TracebackType
from typing import Optional, Type

from circuitpython_typing.displayio import AnyDisplay
except ImportError:
pass

Expand All @@ -36,7 +38,7 @@
class Cursor:
"""Mouse cursor interaction for CircuitPython.

:param ~displayio.Display display: CircuitPython display object.
:param ~AnyDisplay display: CircuitPython display object.
:param ~displayio.Group display_group: CircuitPython group object to append the cursor to.
:param ~displayio.Bitmap bmp: CircuitPython bitmap object to use as the cursor
:param bool is_hidden: Cursor is hidden on init.
Expand All @@ -60,7 +62,7 @@ class Cursor:

def __init__(
self,
display: Optional[displayio.Display] = None,
display: Optional[AnyDisplay] = None,
display_group: Optional[displayio.Group] = None,
bmp: Optional[displayio.Bitmap] = None,
is_hidden: bool = False,
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
# SPDX-License-Identifier: Unlicense

Adafruit-Blinka
Adafruit-Blinka-Displayio
adafruit-circuitpython-debouncer
adafruit-circuitpython-typing