My apologies if this is in the wrong section.
I have a simple circuit. An arduino pro mini. 8, 10 or 16 LEDs and their resistors connected to the pro mini. One per pin. And an ldr to check light level to initiate the led sequence.
My question is: Is it possible for the arduino to test which pins are connected to an led and which aren't?
In other words. If I have a single program on all of the arduinos and the arduino self configures itself for an 8 10 or 16 led sequence. Just means I don't have to change the program for each led configuration.
BTW. I can't use the ldr mentioned above as it's out of sight of the LEDs.
I don't want to add additional by hardware.