How to make procedures triggered remotely
perhaps an array and a loop? (dont have the Arduino IDE atm, so sorry about any typos)

int lights[] = {1, 2, 3, 4, 5, 9, 10};
int count = 7;//because there are 7 items in the array
//

main(){
    for (int i = 0; i &lt; count; i++){
         digitalWrite(lights[i], HIGH);
         delay(1000);
    }
}


EDIT: still no IDE, but here is a little more depth.

forward(true) = forward lights on

forward(false) = forward lights off

reverse(true) = reverse lights on

reverse(false) = reverse lights off

void forward(bool state){
    int lights[] = {1, 2, 3, 4, 5, 6, 9, 10};
    int count = sizeof(lights) / sizeof(lights[0]);

    for (int i = 0; i &lt; count; i++){
        switch (state){

            case true: //turn on
                digitalWrite(lights[i], HIGH);
                break;  

            case false: //turn off
                digitalWrite(lights[i], LOW);
                break;  
        }
        //delay(1000); //optional delay between lights?
    }                            
}

void reverse(bool state){
    int lights[] = {3, 4, 5, 6, 7, 8};
    int count = sizeof(lights) / sizeof(lights[0]);

    for (int i = 0; i &lt; count; i++){
        switch (state){

            case true: //turn on
                digitalWrite(lights[i], HIGH);
                break;  

            case false: //turn off
                digitalWrite(lights[i], LOW);
                break;  
        }
        //delay(1000); //optional delay between lights?
    }                            
}