Light indicator

When selecting the Arduino’s digital input for battery the indicator goes out and when activating the selected Arduino port so that the indicator lights up nothing happens, but I also wanted that when selecting the Arduino’s digital port I would prefer the indicator to remain on and when activating the digital port of the Arduino it would go out, but both attempts failed, if anyone can help me

The digital input has a value of 0 or 1, it does not reach 10.

1 Like

You helped me solve it in Tulio’s group, thank you

2 Likes