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) """