Library for interfacing with Nikon DSLR through IR LED

Dependencies:   mbed

Revision:
0:e977f7ad0d48
Child:
1:bdc12143ced7
diff -r 000000000000 -r e977f7ad0d48 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 26 00:18:24 2019 +0000
@@ -0,0 +1,27 @@
+/**
+* MBED code functionality, including idea of modulating PWM signal, taken from
+* https://os.mbed.com/users/viswesr/code/DSLR_Camera_IR_Remote/
+* As the given values did not work on the Nikon D3300, they were modified,
+* parameterized, and put into library form.
+* 
+* Inspiration, default values, and an Arduino validation signal were taken from
+* https://bayesianadventures.wordpress.com/2013/08/09/nikon-ml-l3-ir-remote-hack/
+*
+* Library instructions were taken from https://os.mbed.com/cookbook/Writing-a-Library
+*/
+#include "mbed.h"
+#include "DslrIr.h"
+
+DigitalIn button(p20);  /* Push button to enable shutter release */
+DslrIr dslr(p21);
+
+int main()
+{
+//    button.mode(PullUp);
+    while(1) {
+        if(!button) {
+            dslr.trigger();
+            wait(1);
+        }
+    }
+}
\ No newline at end of file