Closed bored-engineer closed 8 years ago
So at the time, I figured if people wanted more than 32 LEDs they would probably want to change the scaling algorithm anyway.
What happens if you replace the 32
with num_leds
and add a num_leds
argument to scale_samples
? I suspect that will fix it (unless I also hard-coded 32 in the color generation algorithms for some reason).
I have a issue with this file as well, I am no where good at coding so, yeah I need help. When this file tries to run I get this: File "C:\Users\Justin\Downloads\LEDStrip-master\LEDStrip-master\Audio Processing\lavalamp_colors.py", line 42 def scale((r,g,b), magnitude): ^ SyntaxError: invalid syntax Any ideas? Thanks in advance! EDIT: the carrot is actually under the parentheses
Closing due to inactivity.
Changing num_leds (https://github.com/wyager/LEDStrip/blob/master/Audio%20Processing/led_driver.py#L43) to any value other than 32 results in the following error:
The issue seems to be caused by the number 32 on this line.