Is there a way to run an array through, without having to count the values inside?
Here is what I have to do (assuming that I have set an array with 9 values inside)
for (int i = 0; i < 9; i++) {
digitalWrite (pins[i], LOW);
}
This is hard to explain, as I use this within PHP. but here is what I would like to do, so as not to have to know how many values are in my array.
for (int i = 0; i < pins[] + 1; i++) {
digitalWrite (pins[i], LOW);
}
I'm having a hard time explaining my question, but if you can understand what I'm after, any help is much appreciated.