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_Testnew by
Diff: buttonArray.h
- Revision:
- 21:ceac47be2e64
- Child:
- 22:abbc12fca525
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/buttonArray.h Fri Oct 27 15:15:00 2017 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+#include "button.h"
+
+// This is a button class for our custom button
+class buttonArray {
+
+// buttons
+private:
+// 6 buttons here
+ button button1;
+ button button2;
+ button button3;
+ button button4;
+ button button5;
+ button button6;
+ int currVal;
+
+public:
+ // constructors
+ 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();
+
+};
\ No newline at end of file
