Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

Scripts For Traffic Light 2 Side On Arduino Genuino Uno

        hay guys assalamualikum. i'm soory for my late post , coz i'm kinda busy a few day .. so if you guys who continously checking my blog for a new Post i'm a kinda cannot post manny things . so just enjoy ^^.

        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

Posting Komentar

0 Komentar