Thanks for the advice.
I'm disapointed in myself for not realising this.... ![]()
Then you don't need an Arduino pin for it. Just wire it direct to 5V (with a series resistor of course).
Also thanks for that note, i'll bear it in mind
In C, "=" and "==" do different things. One assigns, one compares.
I've looked up arrays and for ()loops as you suggested, but i'm still a little puzzled on how to use it correctly. Could you possibly help me out by giving an example?