It was very interesting to try to create a programm, because when you start to create something you can understand that you can code everything you want! I'm not very good at Arduino programming language yet, but i belive that one day i will code something very usefull and smart.
Some usefull information:
void setup()
{
pinMode(13, OUTPUT); // set digital pin 13 to output
}
void loop()
{
digitalWrite(13, HIGH); //turn light on
delay(500) //wait 0.5 seconds
digitalWrite(13, LOW); //turn light off
delay(1000) //wait 1 second
}
Some usefull information:
- Arduino official web site
- Compiller for creating your own programms you can download here
Source code of my first programm:
void setup()
{
pinMode(13, OUTPUT); // set digital pin 13 to output
}
void loop()
{
digitalWrite(13, HIGH); //turn light on
delay(500) //wait 0.5 seconds
digitalWrite(13, LOW); //turn light off
delay(1000) //wait 1 second
}
No comments:
Post a Comment