Paso 5: Programa e ir
/* Camera Flash Based on basic Blink example This example code is in the public domain. */ void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); // Trigger the flash delay(10); // Wait for a 1/100 second digitalWrite(13, LOW); // Turn off the flash delay(7000); // Wait 7 seconds for flash to recharge }
Suponiendo que el flash está activado, se debe ahora producir cada 7 segundos.