
elec350
Fork of elec350 by
Diff: button.h
- Revision:
- 3:998b7d011f2a
- Parent:
- 0:753cf4c2738f
- Child:
- 4:549d1d8ca969
--- a/button.h Wed Oct 14 20:49:17 2015 +0000 +++ b/button.h Wed Oct 14 21:09:51 2015 +0000 @@ -3,11 +3,13 @@ #include "mbed.h" +#include <string> + class Button { private: DigitalIn* pin; public: - Button(); + Button(string name); bool isPressed(); float waitWhileHeld(); };