Skip to content

Commit e9d5fdb

Browse files
committed
Fix PEP8 compliance
1 parent c20d13c commit e9d5fdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Labo_Piano_Light_FX/code.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ def remapRangeSafe(value, leftMin, leftMax, rightMin, rightMax):
6969
for i in range(0, len(strip)):
7070
strip[i] = wheel(vlvl)
7171
# Set strip brightness based oncode audio level
72-
strip.brightness = float(remapRangeSafe(lvl, 50, 255, 0, maxbrt)) / 255.0
72+
brightness = remapRangeSafe(lvl, 50, 255, 0, maxbrt)
73+
strip.brightness = float(brightness) / 255.0
7374
strip.show()

0 commit comments

Comments
 (0)