Étape 5: Programme et aller
/* 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 }
En supposant que votre flash est activé, il doit maintenant être déclenchée toutes les 7 secondes.