The original code is for 20 lamps when i run it it works.
But i have a setup of 200 lamps, so when i have made my changes in the code i get the following error: ArrayIndexOutOfBoundsException:2145573, and it marks line 368 in the code.
c = pxls [offs[o]];
I have attached the full code.
Thanks!
Adalight.pde (19.9 KB)