Skip to content

Commit 9ddbd63

Browse files
authored
Merge pull request #883 from EGJ-Moorington/main
Renamed keypad._EventQueue for parity with CircuitPython
2 parents 427cdfd + a74610b commit 9ddbd63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/keypad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def __repr__(self):
6767
)
6868

6969

70-
class _EventQueue:
70+
class EventQueue:
7171
"""
7272
A queue of `Event` objects, filled by a `keypad` scanner such as `Keys` or `KeyMatrix`.
7373
74-
You cannot create an instance of `_EventQueue` directly. Each scanner creates an
74+
You cannot create an instance of `EventQueue` directly. Each scanner creates an
7575
instance when it is created.
7676
"""
7777

@@ -155,7 +155,7 @@ class _KeysBase:
155155
def __init__(self, interval, max_events, scanning_function):
156156
self._interval = interval
157157
self._last_scan = time.monotonic()
158-
self._events = _EventQueue(max_events)
158+
self._events = EventQueue(max_events)
159159
self._scanning_function = scanning_function
160160
self._scan_thread = threading.Thread(target=self._scanning_loop, daemon=True)
161161
self._scan_thread.start()

0 commit comments

Comments
 (0)