Library for interfacing with Nikon DSLR through IR LED

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 /**
00002 * This program will transmit a modulated infrared signal to a Nikon DSLR using
00003 * a QED-123 IR LED
00004 */
00005 
00006 #include "mbed.h"
00007 #include "DslrIr.h"
00008 
00009 DigitalIn trigger(p20);  /* Pull down trigger to enable shutter release */
00010 DslrIr dslr(p21);
00011 
00012 int main()
00013 {
00014 //    trigger.mode(PullUp);
00015     while(1) {
00016         if(!trigger) {
00017             dslr.trigger();
00018             wait(1);
00019         }
00020     }
00021 }