MultiCameraIrControl
From Digipool-Wiki
!Nur kompatibel mit Arduino 1.0.5 - funktioniert nicht mit neueren Arduino Versionen!!!
<source lang="java"> /*******************************************
* * !!! Use Arduino 1.0.5 !!!!! * * Name.......: multiCameraIrControl Library - Canon Example * Description: A small example sketch how to use multiCameraIrControl library. Please check the project page for wiring and leave a comment. * Author.....: Sebastian Setz * Version....: 1.2 * Date.......: 2011-01-25 * Project....: http://sebastian.setz.name/arduino/my-libraries/multi-Camera-IR-Control * Contact....: http://Sebastian.Setz.name * License....: This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to * Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. * Keywords...: arduino, library, camera, ir, control, canon, nikon, olympus, minolta, sony, pentax, interval, timelapse * History....: 2010-12-08 V1.0 - release * 2011-01-04 V1.1 * 2011-01-25 V1.2 - changing pin number, because the wiring at the homepage was different * ********************************************/
- include <multiCameraIrControl.h>
Canon D5(10);
void setup(){
pinMode(13, OUTPUT); // onBoardLED
}
void loop(){
D5.shutterNow(); // trigger // D5.shutterDelayed(); digitalWrite(13, HIGH); // blik delay(500); digitalWrite(13, LOW); delay(3000); // <----- wait
} </source>