elec350

Dependencies:   mbed

Fork of elec350 by Bob Merrison-Hort

button.h

Committer:
rmerrisonhort
Date:
2015-10-20
Revision:
7:aa63d1e53be6
Parent:
5:f2c1ff02e333
Child:
8:a82ea42026db

File content as of revision 7:aa63d1e53be6:

#ifndef _BUTTON_H_
#define _BUTTON_H_

#include "mbed.h"
#include <string>

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

#endif