Skip to content

Commit

Permalink
Merge pull request #883 from EGJ-Moorington/main
Browse files Browse the repository at this point in the history
Renamed keypad._EventQueue for parity with CircuitPython
  • Loading branch information
makermelissa authored Aug 12, 2024
2 parents 427cdfd + a74610b commit 9ddbd63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/keypad.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ def __repr__(self):
)


class _EventQueue:
class EventQueue:
"""
A queue of `Event` objects, filled by a `keypad` scanner such as `Keys` or `KeyMatrix`.
You cannot create an instance of `_EventQueue` directly. Each scanner creates an
You cannot create an instance of `EventQueue` directly. Each scanner creates an
instance when it is created.
"""

Expand Down Expand Up @@ -155,7 +155,7 @@ class _KeysBase:
def __init__(self, interval, max_events, scanning_function):
self._interval = interval
self._last_scan = time.monotonic()
self._events = _EventQueue(max_events)
self._events = EventQueue(max_events)
self._scanning_function = scanning_function
self._scan_thread = threading.Thread(target=self._scanning_loop, daemon=True)
self._scan_thread.start()
Expand Down

0 comments on commit 9ddbd63

Please sign in to comment.