
elec350
Fork of elec350 by
button.h
- Committer:
- rmerrisonhort
- Date:
- 2015-10-14
- Revision:
- 3:998b7d011f2a
- Parent:
- 0:753cf4c2738f
- Child:
- 4:549d1d8ca969
File content as of revision 3:998b7d011f2a:
#ifndef _BUTTON_H_ #define _BUTTON_H_ #include "mbed.h" #include <string> class Button { private: DigitalIn* pin; public: Button(string name); bool isPressed(); float waitWhileHeld(); }; #endif