going to experiment driving the TWILITE pins with similar code in a sub route.
You are still missing the point of using the shift registers. Your plan with separate data lines is an unholy mess that you'll never make work, and nobody will help you un-muck it because it's just not going to work. The shift module won't support what you're trying to do, and there's ZERO chance you can come up with an alternative. If people who
know how to use shift registers tell you whar you're trying to do,
you would be wise to heed their advice. I've been telling you that for 20 years – maybe you should consider it this time since the number of people willing to help you is just about ZERO.
● ONE and ONLY ONE data line with the '595s connected in series.
● ALL CLOCK pins connected together.
● ALL LATCH pins connected together.
● A huge array of bytes, which you can either shift out one byte at a time to move a pattern across the shift registers, or you shift out as many bytes at a time as there are shift registers.
Let's say you have 8 shift registers. Set up 8 bytes with some LEDs illuminated, some not. Shift out those 8 bytes. Call them LEDData(0) to LEDDate(7).
Copy those bytes to LEDDate(8) to LEDData(15). Change just a few bits, say one or two in each byte. Shift this group out 250mS after the first group.
Copy LEDData(0) – (7). Change a few different bits. Send it out 250mS after the last group.
The LEDs that had been off initially that you turned on in the second group and off again in the 3rd will have twinkle. Other LEDs you leave on or off for a number of groups for a different effect.
It will take some effort to set up the data array, but mostly you're just
copy&pasting (which you are extremely experienced at) and changing a few bits at a time.
If the above doesn't make sense to you, you have two options:
--> Ask specific questions about what you don't understand.
--> Throw everything in the dumpster.
Getting "creative" and trying to make hardware you DO NOT UNDERSTAND work the way YOU WANT IT TO WORK is just not going to work for you. How many forum pages are there between you last thread and this one, and you've only just gotten the shift register to work????? Maybe it's time you followed thevl advice people give you.
MrDEB – you should be aware you are on my block list and I don't even see the threads you post unless I search them out. I will not to foolish enough to do that in the future. I'm done being a fool.