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.

Revision:
0:083159111741
diff -r 000000000000 -r 083159111741 Pulse.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Pulse.h	Wed Dec 01 00:36:04 2010 +0000
@@ -0,0 +1,25 @@
+#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