We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c20d13c commit e9d5fdbCopy full SHA for e9d5fdb
Labo_Piano_Light_FX/code.py
@@ -69,5 +69,6 @@ def remapRangeSafe(value, leftMin, leftMax, rightMin, rightMax):
69
for i in range(0, len(strip)):
70
strip[i] = wheel(vlvl)
71
# Set strip brightness based oncode audio level
72
- strip.brightness = float(remapRangeSafe(lvl, 50, 255, 0, maxbrt)) / 255.0
+ brightness = remapRangeSafe(lvl, 50, 255, 0, maxbrt)
73
+ strip.brightness = float(brightness) / 255.0
74
strip.show()
0 commit comments