Julio, parte de este gran equipo, nos ha hecho el favor de crear este tutorial ya que conoce a la perfección dicho tema.
Ejemplo 1: código para parpadeo de led en arduino
voidsetup()
LED_BUILTIN =3;//or 13 // initialize digital pin LED_BUILTIN as an output.pinMode(LED_BUILTIN, OUTPUT);// the loop function runs over and over again forevervoidloop()digitalWrite(LED_BUILTIN, HIGH);// turn the LED on (HIGH is the voltage level)delay(1000);// wait for a seconddigitalWrite(LED_BUILTIN, LOW);// turn the LED off by making the voltage LOWdelay(1000);// wait for a second
Ejemplo 2: parpadear arduino
voidsetup()// initialize digital pin LED_BUILTIN as an output.pinMode(LED_BUILTIN, OUTPUT);// the loop function runs over and over again forevervoidloop()digitalWrite(LED_BUILTIN, HIGH);// turn the LED on (HIGH is the voltage level)delay(1000);// wait for a seconddigitalWrite(LED_BUILTIN, LOW);// turn the LED off by making the voltage LOWdelay(1000);// wait for a second
Ejemplo 3: arduino led parpadeante
voidsetup()pinMode(ledPin, OUTPUT);
Sección de Reseñas y Valoraciones
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)