Stap 5: Programma en ga
/* 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 }
Ervan uitgaande dat uw flash is ingeschakeld, moet het nu worden gestart om de 7 seconden.