Looking for some inspiration.
Atmega328P connected to 4 tlc5940's providing 16 x 4 outputs.
I want to add individual outputs to a group which may have 1-64 ports assigned by the user. User then just needs to say "group on" and the appropriate outputs are enabled
Question: What's the most efficient way of manipulating/analysing the members?
I had thought of assigning 4 bytes and using the bits to determine if a port is a member which would work, but it means I have to loop though all 64 bits. Any more efficient options especially as they're might be only a few set?
(I still need to send the data via SPI individually)