elec350

Dependencies:   mbed

Fork of elec350 by Bob Merrison-Hort

Revision:
0:753cf4c2738f
Child:
3:998b7d011f2a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/button.h	Tue Oct 13 01:10:14 2015 +0000
@@ -0,0 +1,15 @@
+#ifndef _BUTTON_H_
+#define _BUTTON_H_
+
+#include "mbed.h"
+
+class Button {
+    private:
+        DigitalIn* pin;
+    public:
+        Button();
+        bool isPressed();
+        float waitWhileHeld();
+};
+
+#endif
\ No newline at end of file