myBlink

mig RB.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); // leave it on for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(100); // turn off for a tenth of a second
digitalWrite(13, HIGH); //turn the LED on (HIGH is the voltage level)
//leave it on for a seventh of a second
delay(700);
digitalWrite(13, LOW); //turn the LED off by making the voltage LOW
//turn off for a quarter of a second
delay(250);
digitalWrite(13, HIGH);//turn the LED on (HIGH is the voltage level)
//leave it on for a sixth of a second
delay(600);
digitalWrite(13, LOW); //turn the LED off by making the voltage LOW
//turn off for a half of a second
delay(500);
digitalWrite(13, HIGH);//turn the LED on (HIGH is the voltage level)
//leave it on for 85 percent a second
delay(850);
digitalWrite(13, LOW);//turn the LED off by making the voltage LOW
//turn off for 200th of a second
delay(50);
digitalWrite(13, HIGH);//turn the LED on (HIGH is the voltage level)
//leave it on for 1 and 1/5 of a second
delay(1200);
}

Advertisements

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