![](/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
button.h
- Committer:
- aismail1997
- Date:
- 2017-10-18
- Revision:
- 15:b80dde24e9bc
- Parent:
- 12:21268d8bf979
- Child:
- 16:581a3b02f4c3
File content as of revision 15:b80dde24e9bc:
#include "mbed.h" // This is a button class for our custom button class button { // pins connected to the button private: PwmOut servo; DigitalIn pb; //int state; // is the button up or down // int mode; // is the system in reading or typing mode //AnalogIn linpot; public: // constructors button(); button(PwmOut servo, DigitalIn pb); // functions PwmOut getServoPin(); // get the servo pin //int getState(); // determine what state the button is in - up or down void moveServoIn(); // move servo into the slot void moveServoOut(); // move servo out of the slot };