Working read code

Dependencies:   SDFileSystem emic2 mbed-rtos mbed

Revision:
0:5887cb744114
diff -r 000000000000 -r 5887cb744114 buttonArray.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/buttonArray.h	Mon Dec 04 19:58:40 2017 +0000
@@ -0,0 +1,29 @@
+#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* wrongPins(char* input, char actual);
+    char checkVal(char* braille); // return buttons ascii representation
+    void releaseButtons();// release all buttons;
+    int* pinsUp(char val);    
+    char* getBraille(char val);
+    void setup();
+};
\ No newline at end of file