
elec350
Fork of elec350 by
button.h
- Committer:
- rmerrisonhort
- Date:
- 2015-11-19
- Revision:
- 16:721e41936a07
- Parent:
- 8:a82ea42026db
File content as of revision 16:721e41936a07:
#ifndef _BUTTON_H_ #define _BUTTON_H_ #include "mbed.h" #include <string> class Button { private: DigitalIn* pin; public: Button(string name); bool isPressed(); float getPulse(float timeout=-1.0f); }; #endif