![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Working read code with mode button
Dependencies: SDFileSystem emic2 mbed-rtos mbed
Fork of BAT_senior_design_Testnew by
Diff: button.h
- Revision:
- 1:f3d363ca2343
- Parent:
- 0:5887cb744114
- Child:
- 43:82d67fb53e61
--- a/button.h Mon Dec 04 19:58:40 2017 +0000 +++ b/button.h Mon Dec 04 20:14:24 2017 +0000 @@ -13,20 +13,14 @@ int state; // where is the button (0 - 4) int press; // is the button up or down int id; // this is the ID, each button should have a unique id - // int mode; // is the system in reading or typing mode - //AnalogIn linpot; public: // constructors button(); // Default button(PwmOut servo, DigitalIn pb, int id); - //button(PwmOut servo, DigitalIn pb, AnalogIn linpot); - // button(PwmOut servo, DigitalIn pb, AnalogIn linpot); // functions PwmOut getServoPin(); // get the servo pin - //void setState(int state); // set state - //void setMode(int mode); // set mode void setState(int); // set what state the button is in - up or down void setPress(int); // set the button press void moveServoIn(); // move servo into the slot