Working read code with mode button

Dependencies:   SDFileSystem emic2 mbed-rtos mbed

Fork of BAT_senior_design_Testnew by BAT

button.h

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

File content as of revision 12: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();
};