spycatcher2k:
Oh dear - looks like a current school / college / uni project is 'make a set of traffic lights with a pedestrian controlled crossing.'
I for one will not do any one elses homework. Had enough of this doing my college time.
It's not homework... it's just a project to take more good marks :v if you don't want to help in finding and helping me to make it faster please don't comment 
UKHeliBob:
Please upload the code into a post here and make sure that you select the code in the forum editor and click the code tags icon (</>) top/left of the editor before saving the message. It makes it much easier to deal with when reading and copying it.
int red1 = 12;
int orange1 = 11;
int green1= 10;
int arrow1 = 9;
int red2 = 8;
int orange2= 7;
int green2= 6;
int arrow2= 5;
int red3 = 4;
int orange3 = 3;
int green3 = 2;
void setup() {
pinMode(red1, OUTPUT);
pinMode(red2, OUTPUT);
pinMode(red3, OUTPUT);
pinMode(orange1, OUTPUT);
pinMode(orange2, OUTPUT);
pinMode(orange3, OUTPUT);
pinMode(green1, OUTPUT);
pinMode(green2, OUTPUT);
pinMode(green3, OUTPUT);
pinMode(arrow1, OUTPUT);
pinMode(arrow2, OUTPUT);
}
void loop() {
// TURNING ON FIRST LIGHT
digitalWrite(red1, HIGH); //RED ON
digitalWrite(orange1, HIGH);//ORANGE ON
digitalWrite(red1, LOW); //RED OFF
digitalWrite(green1, HIGH); //GREEN ON
digitalWrite(orange1, LOW); //ORANGE OFF
// TURNING OFF FIRST LIGHT
digitalWrite(green1, HIGH); //GREEN ON
digitalWrite(orange1, HIGH); //ORANGE ON
digitalWrite(green1, LOW); //GREEN OFF
digitalWrite(red1, HIGH); //RED ON
digitalWrite(orange1, LOW); //ORANGE OFF
}
UKHeliBob:
I couldn't resist having a look
digitalWrite(red1, HIGH); //RED ON
digitalWrite(orange1, HIGH);//ORANGE ON
digitalWrite(red1, LOW); //RED OFF
digitalWrite(green1, HIGH); //GREEN ON
digitalWrite(orange1, LOW); //ORANGE OFF
How long do you expect each light to be on ?
Note the use of code tags.
i will be adding delays later
now i'm looking to make it faster in coding