Arduino


My First Arduino project – SOS signal

code

int led = 13;

void setup() {

pinMode(led, OUTPUT);
}

void loop() {
digitalWrite(led, HIGH);   // turn the LED on
delay(500);                // w8 1/2*second
digitalWrite(led, LOW);    // turn the LED off
delay(500);                // w8 1/2*second

// (3 times)

digitalWrite(led, HIGH);
delay(1000);                // w8 1 second
digitalWrite(led, LOW);
delay(1000);

// (3 times)

digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(500);

// (3 times)
delay(3000);                // w8 3 seconds

}

Leave your Comment below

Please log in using one of these methods to post your comment:

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 )

Google+ photo

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

Connecting to %s