This is a Library I have created for a Project, the aim being to send the shutter release trigger signal to my Nikon D40x DSLR using an IR led. The code defaults to a 38.4KHz oscilation but can be set to any frequency.
Pulse.h
- Committer:
- hazanjon
- Date:
- 2010-12-01
- Revision:
- 0:083159111741
File content as of revision 0:083159111741:
#ifndef MBED_PULSE_H #define MBED_PULSE_H #include "mbed.h" class Pulse { public: Pulse(PinName pin); void send_pulse(int* sequence); void set_osc(int hz); void set_pin(PinName pin); private: DigitalOut output_pin; int oscilation; bool switch_state; Ticker flipper; void flip_pin(); void change_state(); }; #endif