Niels Leijen / PowerControl
Revision:
0:f7568c04c1c3
Child:
2:1e3291e8294d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PowerControl.h	Wed May 10 17:13:50 2017 +0000
@@ -0,0 +1,27 @@
+#ifndef POWER_H
+#define POWER_H
+
+#include "mbed.h"
+
+/** Power class
+ *  Used to control the buck converters
+ */
+class PowerControl
+{
+    public:
+    /** Create PowerControl instance
+    @param greenButton
+    @param redButton
+    */
+    PowerControl(PinName greenButton, PinName redButton);
+    
+    private:
+     /** goSleep
+     sleep
+    */
+    void goSleep(void);
+    
+    InterruptIn _greenButton;
+    InterruptIn _redButton;
+};
+#endif //POWER_H
\ No newline at end of file