From 992c0f835b134b1817004137f780f4ea6256fe10 Mon Sep 17 00:00:00 2001 From: Tony Mitchell Date: Sun, 25 Jul 2021 12:06:14 -0700 Subject: [PATCH] Fix typo in documentation for keys.events The EventQueue is available via the events member, not event. See https://circuitpython.readthedocs.io/en/latest/shared-bindings/keypad/index.html#keypad.Keys.events --- adafruit_macropad.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_macropad.py b/adafruit_macropad.py index 9b74e1c..65f5e30 100755 --- a/adafruit_macropad.py +++ b/adafruit_macropad.py @@ -273,7 +273,7 @@ def red_led(self, value): def keys(self): """ The keys on the MacroPad. Uses events to track key number and state, e.g. pressed or - released. You must fetch the events using ``keys.event.get()`` and then the events are + released. You must fetch the events using ``keys.events.get()`` and then the events are available for usage in your code. Each event has three properties: * ``key_number``: the number of the key that changed. Keys are numbered starting at 0. @@ -292,7 +292,7 @@ def keys(self): macropad = MacroPad() while True: - event = macropad.keys.event.get() + event = macropad.keys.events.get() if event: print(event) """