Thursday, March 18, 2010

Arduino - first sketch

Of course I started with the blink one LED on pin 13 standard.

//Example 01 : Blinking LED

#define LED 13

void setup()
{
pinMode(LED, OUTPUT);
}

void loop()
{
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}

No comments:

Post a Comment