Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem emic2 mbed-rtos mbed
Fork of BAT_senior_design_Nhi by
Diff: button.h
- Revision:
- 14:581a3b02f4c3
- Parent:
- 13:b80dde24e9bc
- Child:
- 19:ceac47be2e64
diff -r b80dde24e9bc -r 581a3b02f4c3 button.h
--- a/button.h Wed Oct 18 14:41:04 2017 +0000
+++ b/button.h Sun Oct 22 22:20:11 2017 +0000
@@ -7,16 +7,19 @@
private:
PwmOut servo;
DigitalIn pb;
- //int state; // is the button up or down
+ // int state; // is the button up or down
// int mode; // is the system in reading or typing mode
- //AnalogIn linpot;
+ // AnalogIn linpot;
public:
// constructors
- button();
+ button(); // Default
button(PwmOut servo, DigitalIn pb);
+ // 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
//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
