Skip to content

Commit e0cc6ef

Browse files
committed
Fix issues raised by pylint
1 parent 42bb82e commit e0cc6ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/macropad_tone_keypad_extended.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"""
55
MacroPad extended tone demo. Expands upon the basic tone demo by using
66
a stack to track pressed keys, allowing multiple keys to be pressed at once,
7-
while preserving the order they were pressed. Also, improved responsiveness by
7+
while preserving the order they were pressed. Also, improved responsiveness by
88
updating the Neopixels only when one of the key states has changed.
99
"""
1010

11-
from adafruit_macropad import MacroPad
1211
from rainbowio import colorwheel
12+
from adafruit_macropad import MacroPad
1313

1414
macropad = MacroPad()
1515

@@ -30,10 +30,10 @@
3030

3131
# Helper to convert an integer to an rgb value.
3232
def rgb_from_int(rgb):
33-
b = rgb & 255
34-
g = (rgb >> 8) & 255
35-
r = (rgb >> 16) & 255
36-
return r, g, b
33+
blue = rgb & 255
34+
green = (rgb >> 8) & 255
35+
red = (rgb >> 16) & 255
36+
return red, green, blue
3737

3838

3939
# Loop forever, until the heat death of the universe

0 commit comments

Comments
 (0)