Test fork nhi

Dependencies:   SDFileSystem mbed-rtos mbed emic2

Fork of BAT_senior_design by BAT

button.h

Committer:
aismail1997
Date:
2017-10-16
Revision:
10:21268d8bf979
Child:
13:b80dde24e9bc

File content as of revision 10:21268d8bf979:

#include "mbed.h"

class button {

private:
    PwmOut servo;
    DigitalIn pb;
    int state;

public:
    // constructors
    button();
    button(PwmOut servo, DigitalIn pb);
    // functions
    PwmOut getServoPin();
    int getState();
    void moveServoIn();
    void moveServoOut();
};