Código en Arduino Para Intermitencia de Un Led

2
CÓDIGO EN ARDUINO PARA INTERMITENCIA DE UN LED: //Declaración e inicialización de variables! // Pin 8 is the one connected to our LED. int ledPin=8; //ledPin is an integer variable //initialized at 8; //Es ejucatada una sola vez! //The setup routine runs once when you power up the //board or push the reset switch. void setup() { // put your setup code here, to run once: pinMode(ledPin, OUTPUT); // Initialize the digital //pin as an output because //we want it to source a current. } //Ejecutada infinitamente! //The Loop routine runs forever. void loop() { // put your main code here, to run repeatedly: digitalWrite(ledPin, HIGH); //Turn the LED on //(HIGH is a constant //meaning a 5V voltage) //delay(10); //wait for 250ms in the current state. //digitalWrite(ledPin, LOW); //Turn the LED off (LOW is //a constant meaning a 5V //Voltage)

description

Código en Arduino Para Intermitencia de Un Led

Transcript of Código en Arduino Para Intermitencia de Un Led

Page 1: Código en Arduino Para Intermitencia de Un Led

CÓDIGO EN ARDUINO PARA INTERMITENCIA DE UN LED:

//Declaración e inicialización de variables!

// Pin 8 is the one connected to our LED.

int ledPin=8; //ledPin is an integer variable

//initialized at 8;

//Es ejucatada una sola vez!

//The setup routine runs once when you power up the

//board or push the reset switch.

void setup() {

// put your setup code here, to run once:

pinMode(ledPin, OUTPUT); // Initialize the digital

//pin as an output because

//we want it to source a current.

}

//Ejecutada infinitamente!

//The Loop routine runs forever.

void loop() {

// put your main code here, to run repeatedly:

digitalWrite(ledPin, HIGH); //Turn the LED on

//(HIGH is a constant

//meaning a 5V voltage)

//delay(10); //wait for 250ms in the current state.

//digitalWrite(ledPin, LOW); //Turn the LED off (LOW is

//a constant meaning a 5V

//Voltage)

//delay(10); //Wait for 1s in the current state.

//delay(100); //Wait for 100ms in the current state.

Page 2: Código en Arduino Para Intermitencia de Un Led

}