![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Library for interfacing with Nikon DSLR through IR LED
main.cpp
- Committer:
- danbudanov
- Date:
- 2019-04-26
- Revision:
- 0:e977f7ad0d48
- Child:
- 1:bdc12143ced7
File content as of revision 0:e977f7ad0d48:
/** * 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); } } }