Hi again,
-
When people run out of output pins on Arduino they often use a shift register and they can be strung together so 3 output wires can control n*8. Used heavily by Kevin Darrah in his led cube project. In one video, sorry can’t remember where, he explains how to speed up the output by avoiding the digitalWrite function. Those videos are worth watching anyway, but here’s a quick explanation of the fast write. The usual ShiftOut for Arduino may not be right for ESP32, and the fast write will definitely need ESP32 code.
-
Yes. Now look at your functions routeStrip1,2,3,4. I think they are all the same but with different pixel[index]. Make that index a passed in parameter, and 4 functions become one.