JIAWEI ZHANG / Mbed 2 deprecated ele350ku

Dependencies:   mbed

Dependents:   Exercise8_1-2-3

Fork of ele350 by JIAWEI ZHANG

button.h

Committer:
GGHHHH
Date:
2015-11-12
Revision:
11:e6ddabe64bee
Parent:
2:9a0770c4fdd6
Child:
12:1ea09ec4bde1

File content as of revision 11:e6ddabe64bee:

#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