simple project to control mirrorless camera

Dependencies:   mbed BLE_API nRF51822

Revision:
0:81f1818af032
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PowerSwitch/PowerSwitch.h	Wed Oct 21 11:32:45 2015 +0000
@@ -0,0 +1,21 @@
+#ifndef MBED_POWERSWITCH_H
+#define MBED_POWERSWITCH_H
+ 
+#include "mbed.h"
+ 
+class PowerSwitch {
+public:
+    PowerSwitch(PinName pin);
+    void doSwitch(bool state, float duration);
+    bool powerStateOn(void);
+  
+private:  
+    DigitalOut _pin;
+    bool  powerState;
+    void doSwitchEnd(void);
+    
+    Ticker switchPeriod;
+    
+};
+ 
+#endif
\ No newline at end of file