0 TRAFF1C_LIGHT | Arduino 1.8.10 File Edit Sketch Tools Help
i i
| TRAFFIC.LIGHT I
\ i f wuiruf/^
pinMode(8,OUTPUT); pinMode(9,OUTPUT); pinMode(10,OUTPUT); pinMode(11,OUTPUT); pinMode(12,OUTFUT); pinMode(13,OUTFUT);
}
void loop()
{int i;
digitalWrite(2, HIGH);digitalWrite(3,LOW);digitalWrite(4,LOW); digitalWrite(5, LOW);digitalWrite(€, igitalWrlte(7,ŁON) ;
digitalWrite(8, LOW);dlgitalWrite(9,HIGH);digitalWrite(10,LOW);
. -te (11, ŁON);digitalWrite(12,HIGB) ;digitalWnte(13,L0W); delay (J.00000; for(i=0;i<=5;i++)
1
digitalWrite(5, LOW);digitalWrite(6,HIGH);digitalWrite(7,LOW); digitalWrite(8, LOW);digitaiWrite(9,HIGH);digitalWrite(10,LOW); digitalWrite(11, LOW);digitalWrite(12,HIGH);digitalWrite(13,LOW) digitalWrite(2, HIGH);digitalWrite(3,LOW);digitalWrite(4,HIGH); delay(500);
digitalWrite(2, HIGH);digitalWrite(3,LOW);digitalWrite(4,LOW); delay(500);
}
digitalWrite(2, iow);digitaiwrite(3,high);digitalWrite(4,Ł0W) ; digitalWrite (5, HIGH) ;digitalWrite(6,ŁON);digitalWrite(7,LOff);
I o * • \ . 1 . . łV«4aafA 0THn fAUti
Sketch uses 2036 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamie memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
Arduino/Genuino Uno on C0M4
04:51
25-05-2020
25