16 LDR-> multiplexer->nano (or uno)->MAx7219 matrix->LED

hi @feltsg Not sure why you started a new thread. Ppl are gonna be "helping" you decide things you've already; there is quite a bit of info spread through your other thread:

So I have only one question.

… then lights up 1 LED per LDR


is it an LED mated to each LDR, or is it N LEDs on if N LDRs are active?

If it is not mating, do the LEDs light up in a known sequence, that is does the first LDR, no matter which, to activate illuminate LED 1, the second LDR, no matter which, lights up LED 2 &c.

Like a bar graph, even if you have them not arranged linearly? Or just at any time N LDRs are active, some (random? or?) N LEDs are illuminated.

Either is easy, it is again at the point where you need to get very descriptive, I hope you can see the ambiguity and leeway that your too brief description allows.

TBC should LDRs 3, 5, 11 and 13, for example, illuminate LEDs 3, 5, 11 and 13 OR exactly LEDs 1, 2, 3 and 4 OR any four LEDs by logic or random like 4, 6, 10 and 17?

May we assume that the LEDs are extinguished as LDRs go dark? In reverse order of how they were illuminated?

Code is cruel and you will get exactly what you program, which until you say exactly what you want may not be what you expected.

HTH

a7