Skip to content

Commit 96f827e

Browse files
authored
Merge pull request #43 from prcutler/issue40
Fix Issue 40: Docs rendering improperly for keys function
2 parents 5f8c103 + 317f565 commit 96f827e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ _build
3737

3838
# Virtual environment-specific files
3939
.env
40+
.venv
4041

4142
# MacOS-specific files
4243
*.DS_Store

adafruit_macropad.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ def keys(self) -> Keys:
397397
* ``key_number``: the number of the key that changed. Keys are numbered starting at 0.
398398
* ``pressed``: ``True`` if the event is a transition from released to pressed.
399399
* ``released``: ``True`` if the event is a transition from pressed to released.
400-
``released`` is always the opposite of ``pressed``; it's provided
401-
for convenience and clarity, in case you want to test for
402-
key-release events explicitly.
400+
401+
``released`` is always the opposite of ``pressed``; it's provided for convenience
402+
and clarity, in case you want to test for key-release events explicitly.
403403
404404
The following example prints the key press and release events to the serial console.
405405

0 commit comments

Comments
 (0)