Blink

IMG_2593.JPG

// the setup function runs once when you press reset or power the board

void setup() {

 // initialize digital pin 13 as an output.

 pinMode(13, OUTPUT);

}

 

// the loop function runs over and over again forever

void loop() {

 digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)

 delay(1000);              // wait for a second

 digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW

 delay(1000);              // wait for a second

}

Advertisements

One thought on “Blink

  1. The most difficult part of this project is the coding, because you have to use the coding to make the light blinking and how long it have to last each after each blinking and how long does it stay off when the light turn dark and also, you need to figure out which pin will the coding coming out from. The most easy part of this project is too connect the Galileo to the circuit part because also you have to do it to use the jumper to send the command to the LED.

    Like

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 )

Google+ photo

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

Connecting to %s