void setup() {
// put your setup code here, to run once:
pinMode(7, OUTPUT);
pinMode(6, OUTPUT);
pinMode(5, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("qizil yondi sariq yashil oq ochgan ");
digitalWrite(7,1);
digitalWrite(6,0);
digitalWrite(5,0);
digitalWrite(4,0);
delay(2000);
Serial.println("sariq yondi qizil yashil oq ochgan");
digitalWrite(6,1);
digitalWrite(7,0);
digitalWrite(5,0);
digitalWrite(4,0);
delay(2000);
Serial.println("yashil yondi qizil sariq oq ochgan");
digitalWrite(5,1);
digitalWrite(6,0);
digitalWrite(7,0);
digitalWrite(4,0);
delay(2000);
Serial.println("oq yondi qizil sariq yashil ochgan");
digitalWrite(4,1);
digitalWrite(6,0);
digitalWrite(5,0);
digitalWrite(7,0);
delay(2000);
}