Fixed wait time
Dependencies: SDFileSystem emic2 mbed-rtos mbed
Fork of BAT_senior_design_Nhi by
Revision 20:abbc12fca525, committed 2017-10-27
- Comitter:
- aismail1997
- Date:
- Fri Oct 27 15:18:28 2017 +0000
- Parent:
- 19:ceac47be2e64
- Child:
- 21:c5df903f068a
- Commit message:
- added comments
Changed in this revision
| buttonArray.cpp | Show annotated file Show diff for this revision Revisions of this file |
| buttonArray.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/buttonArray.cpp Fri Oct 27 15:15:00 2017 +0000
+++ b/buttonArray.cpp Fri Oct 27 15:18:28 2017 +0000
@@ -1,13 +1,13 @@
#include "mbed.h"
#include "buttonArray.h"
-// button constructor
+// buttonArray constructor
buttonArray::buttonArray(button b1, button b2, button b3, button b4, button b5, button b6)
: button1(b1), button2(b2), button3(b3), button4(b4), button5(b5), button6(b6) {}
-//button::button(PwmOut servo, DigitalIn pb, AnalogIn lp)
-// : servo(servo), pb(pb), linpot(lp), mode(0), state(0) {}
+
+// FUNCTIONS
-// FUNCTIONS
+// map input braille to ascii
int buttonArray::checkVal() {
char* val;
sprintf(val, "%d%d%d%d%d%d", button1.getPress(), button2.getPress(),
--- a/buttonArray.h Fri Oct 27 15:15:00 2017 +0000
+++ b/buttonArray.h Fri Oct 27 15:18:28 2017 +0000
@@ -20,9 +20,6 @@
buttonArray(); // Default
buttonArray(button button1, button button2, button button3, button button4, button button5, button button6);
// functions
- //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
- int checkVal();
+ int checkVal(); // check buttons ascii representation
};
\ No newline at end of file
