ARDUINO UNO Programming Basic

ARDUINO UNO Programming based on 3 statement

**************************************************

(a) #define

(b) void setup()

(c) void loop()

explained as in following 3 small programme

Click to access command.pdf

(A) LED ON (Arduino Programming-1)

*******************************

#define led 13

void setup()

{

  pinMode (13,OUTPUT);

}

void loop()

{

digitalWrite(led,HIGH); //led on

}

(B) LED OFF (Arduino Programming-2)

*********************************

#define led 13

void setup()

{

  pinMode (13,OUTPUT);

}

void loop()

{

  digitalWrite(led,LOW); //led off

}

(C) LED ON/OFF ( Arduino Programming-3)

************************************

#define led 13

void setup()

{

  pinMode (13,OUTPUT);

}

void loop()

{

digitalWrite(led,HIGH); //led on

  delay(500);

  digitalWrite(led,LOW);

  delay(500);

}

Thanks

Adeeb Raza

About adeebraza1236

I am an electronic instrumentation engineer by profession but I am working as a design engineer. I can design electronic hardware interface circuits for computer based security system, Computer based industrial control system for automation and process control Etc. My Interests: Electronics Circuit designing with PCB Designing, Computer software development using VB & C , PC based security system, Designing LED Lights, UPS, Inverter Etc
This entry was posted in Adeeb Raza, Allahabad, arduino, Arduino UNO, Areptone, Books, Circuit Diagram, Education, News and politics, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s