(this is not a programming specific answer, but I guess that you can excuse me, that I cannot dictate the code for all possible modifications due to time reasons…)
the assumption that each LED consumes 20 mA is wrong. One point is, that the max. current is limited by the 74HC595 (80 mA maximum), another point is, that the LEDs are not completely saturated due to the 220 Ohm resistor… in practice the current is mostly about 10mA
thanks for your answer, good to hear that the SR can only deliver 80mA.
(this is not a programming specific answer, but I guess that you can excuse me, that I cannot dictate the code for all possible modifications due to time reasons…)
i can excuse this very easily, you gave so much code to us…
my hope was that there is already an existing project or code. but i will try on my own.