You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have roughly 300 LEDs in a strip. The program works great but only for 144 LEDs. When I tried to change the number of LEDs in both config.py and off.py, I encountered these issues.
.. /led.py, line 105, in _update_pi
if np.array_equal(p[:, I], _prev_pixels[:, I]):
IndexError: index 330 is out of bounds for axis 1 with size 330
I've been trying for a while now to fix it but no luck. If anyone could help with a solution that would be great. Love the project otherwise.
The text was updated successfully, but these errors were encountered:
That's very strange. And it works if you change it to 144? What if you do 300? Have you changed anything else?
Numpy indexing starts at 0 so a couple lines above line 105, the loop is range(config.N_PIXELS) so it should use values 0 to 329 when looping.
in the past, I've tested with values as high as 700 without a problem. The number just has to be divisible by 2. I don't have an active set up for this project at the moment but I can see if I can give it a try this weekend.
I have roughly 300 LEDs in a strip. The program works great but only for 144 LEDs. When I tried to change the number of LEDs in both config.py and off.py, I encountered these issues.
.. /led.py, line 105, in _update_pi
if np.array_equal(p[:, I], _prev_pixels[:, I]):
IndexError: index 330 is out of bounds for axis 1 with size 330
I've been trying for a while now to fix it but no luck. If anyone could help with a solution that would be great. Love the project otherwise.
The text was updated successfully, but these errors were encountered: