elec350

Dependencies:   mbed

Fork of elec350 by Bob Merrison-Hort

button.h

Committer:
rmerrisonhort
Date:
2015-10-13
Revision:
0:753cf4c2738f
Child:
3:998b7d011f2a

File content as of revision 0:753cf4c2738f:

#ifndef _BUTTON_H_
#define _BUTTON_H_

#include "mbed.h"

class Button {
    private:
        DigitalIn* pin;
    public:
        Button();
        bool isPressed();
        float waitWhileHeld();
};

#endif