elec350

Dependencies:   mbed

Fork of elec350 by Bob Merrison-Hort

Revision:
3:998b7d011f2a
Parent:
0:753cf4c2738f
Child:
4:549d1d8ca969
--- a/button.cpp	Wed Oct 14 20:49:17 2015 +0000
+++ b/button.cpp	Wed Oct 14 21:09:51 2015 +0000
@@ -1,8 +1,10 @@
 #include "button.h"
 
-Button::Button()
+Button::Button(string name)
 {
-    this->pin = new DigitalIn(PA_0);
+    if (name == "user") {
+        this->pin = new DigitalIn(PA_0);
+    }
 }
 
 bool Button::isPressed()