/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ // Pin 13 has an LED connected on most Arduino boards. // give it a name: int red_right = 2; int yellow = 3; int orange_fire = 4; int back_reflectors = 5; int red_left = 6; int forward_reflectors = 7; int yellow_fire = 8; int orange = 9; int shuttle_red = 11; int shuttle_green = 12; int shuttle_blue = 13; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(red_right, OUTPUT); pinMode(yellow, OUTPUT); pinMode(orange_fire, OUTPUT); pinMode(back_reflectors, OUTPUT); pinMode(red_left, OUTPUT); pinMode(forward_reflectors, OUTPUT); pinMode(yellow_fire, OUTPUT); pinMode(orange, OUTPUT); pinMode(shuttle_red, OUTPUT); pinMode(shuttle_green, OUTPUT); pinMode(shuttle_blue, OUTPUT); } // the loop routine runs over and over again forever: void loop() { for(int loops=0; loops<30; loops++){ digitalWrite(yellow, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(orange, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(back_reflectors, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(forward_reflectors, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(red_right, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(red_left, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); digitalWrite(orange, LOW); // turn the LED on (HIGH is the voltage level) delay(100); digitalWrite(orange, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); digitalWrite(orange, LOW); // turn the LED on (HIGH is the voltage level) delay(200); digitalWrite(red_right, LOW); // turn the LED on (HIGH is the voltage level) digitalWrite(red_left, LOW); // turn the LED on (HIGH is the voltage level) delay(500); } digitalWrite(back_reflectors, LOW); // turn the LED on (HIGH is the voltage level) digitalWrite(forward_reflectors, LOW); // turn the LED on (HIGH is the voltage level) for(int loops=0; loops<30; loops++){ digitalWrite(shuttle_blue, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(yellow, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(orange, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(orange_fire, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(yellow_fire, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(red_right, HIGH); // turn the LED on (HIGH is the voltage level) digitalWrite(red_left, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); digitalWrite(orange, LOW); // turn the LED on (HIGH is the voltage level) delay(100); digitalWrite(orange, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); digitalWrite(orange, LOW); // turn the LED on (HIGH is the voltage level) delay(200); digitalWrite(red_right, LOW); // turn the LED on (HIGH is the voltage level) digitalWrite(red_left, LOW); // turn the LED on (HIGH is the voltage level) delay(500); } }