today i wanna Post abaout Script's for trafficlight 2 side In Arduino Uno . You guys alredy have the software right ? if not You guys can Download it For Free In Here ( you guys just click the Right of the site )
const int pin8 = 8;
const int pin9 = 9;
const int pin10 = 10;
const int pin11 = 11;
const int pin12 = 12;
const int pin13 = 13;
void setup()
{
pinMode(pin8,OUTPUT);//Red
pinMode(pin9,OUTPUT);//Yellow
pinMode(pin10,OUTPUT);//Green
pinMode(pin11,OUTPUT);//Red
pinMode(pin12,OUTPUT);//Yellow
pinMode(pin13,OUTPUT);//Green
}
void loop()
{
digitalWrite(pin10, HIGH);//Green 1
digitalWrite(pin11, HIGH);
delay(5000);
digitalWrite(pin9, HIGH);//Yellow 1
digitalWrite(pin12, HIGH);//Yellow 2
delay(1000);
digitalWrite(pin8, HIGH);
digitalWrite(pin13, HIGH);//Green 2
delay(5000);
digitalWrite(pin9, HIGH);//Yellow 1
digitalWrite(pin12, HIGH);//Yellow 2
delay(1000);
}
done , soory for mistaken words and , enjoy my post today , anything that you guys wanna ask just leave a commen :) Chandra Here . Assalamualaikum

0 Komentar