my library for elec350

Dependencies:   mbed

Revision:
3:d62097c19a4e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Button.h	Wed Oct 19 20:33:20 2016 +0000
@@ -0,0 +1,14 @@
+#ifndef _BUTTON_H_
+#define _BUTTON_H_
+#include "mbed.h"
+
+class button {
+    
+    private:
+    DigitalIn pin;
+    
+    public:
+    Button(PinName pinName);
+    bool isPressed();
+    };
+    #endif
\ No newline at end of file