Skip to content

Commit 42bb82e

Browse files
committed
Process with Black
1 parent 324fa46 commit 42bb82e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/macropad_tone_keypad_extended.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
tones = [196, 220, 246, 262, 294, 330, 349, 392, 440, 494, 523, 587]
2121

2222
# When a key is pressed we'll append it to the end, and when a key is
23-
# released we'll remove it. This results in a list of pressed keys in
23+
# released we'll remove it. This results in a list of pressed keys in
2424
# the order they were pressed.
2525
key_pressed_stack = []
2626

27-
# When at least one key is pressed, this will
27+
# When at least one key is pressed, this will
2828
# be the index of the currently playing note.
2929
playing_index = None
3030

@@ -35,7 +35,8 @@ def rgb_from_int(rgb):
3535
r = (rgb >> 16) & 255
3636
return r, g, b
3737

38-
# Loop forever, until the heat death of the universe
38+
39+
# Loop forever, until the heat death of the universe
3940
# (or we lose power, whichever comes first).
4041
while True:
4142
# To save time, we'll only update the pixels when a key event happens.
@@ -80,7 +81,7 @@ def rgb_from_int(rgb):
8081
else:
8182
# If a tone was playing, stop it.
8283
if playing_index is not None:
83-
macropad.stop_tone()
84+
macropad.stop_tone()
8485
playing_index = None
8586

8687
# If a key was pressed or released, update the pixels for the pressed keys.
@@ -99,4 +100,3 @@ def rgb_from_int(rgb):
99100

100101
# Don't forget to show the pixels!
101102
macropad.pixels.show()
102-

0 commit comments

Comments
 (0)