I thought I had?
I am looking for a way to make the ‘function’ ( thanks UKheliBob ) work and using 'byte a' instead of just 'a' compiles.
I have just typed a long explanation about trying to avoid the need for 40 arrays and trying to cut it down as each one will consist of 4 0’s and 1 number but in doing so I have come to the conclusion that I will need 40 arrays of 5 numbers each even if every one has 4 0’s in it so your for loop will work.
To answer your further post the shift registers are not connected to the lights in sequence for some reason. Each light glowed behind a panel and lit an instruction or a state written on the front of the panel.
I just thought I would try to get it to work, which I have and learning the code I am trying to make it do various things.