In the first chapter we see the pin mapping of ATmega 168 to get idea about which pins are used in Arduino Uno. Now we are going to see the programming in Arduino IDE. You can download it from the official website of Arduino. Also you can learn the tutorial or libraries or keywords for programming.
Program
1) It consists of two parts one is void setup () and another one is void loop().
2) First, void loop () get executed for only once,whereas void loop () is used to execute it continuously.
3) for example :
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println("hello, world... ") ;
}
The above program will print hello world on serial monitor...!!!!
In next tutorial we'll start with basics of Arduino IDE
No comments:
Post a Comment