
elec350
Fork of elec350 by
button.h
- Committer:
- rmerrisonhort
- Date:
- 2015-10-15
- Revision:
- 5:f2c1ff02e333
- Parent:
- 4:549d1d8ca969
- Child:
- 7:aa63d1e53be6
File content as of revision 5:f2c1ff02e333:
#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