Skip to content

Commit 69fbe97

Browse files
authored
Merge pull request #11 from tonymitchell/patch-1
Fix typo in documentation for keys.events
2 parents d02d483 + 992c0f8 commit 69fbe97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_macropad.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def red_led(self, value):
273273
def keys(self):
274274
"""
275275
The keys on the MacroPad. Uses events to track key number and state, e.g. pressed or
276-
released. You must fetch the events using ``keys.event.get()`` and then the events are
276+
released. You must fetch the events using ``keys.events.get()`` and then the events are
277277
available for usage in your code. Each event has three properties:
278278
279279
* ``key_number``: the number of the key that changed. Keys are numbered starting at 0.
@@ -292,7 +292,7 @@ def keys(self):
292292
macropad = MacroPad()
293293
294294
while True:
295-
event = macropad.keys.event.get()
295+
event = macropad.keys.events.get()
296296
if event:
297297
print(event)
298298
"""

0 commit comments

Comments
 (0)