Working read code with mode button

Dependencies:   SDFileSystem emic2 mbed-rtos mbed

Fork of BAT_senior_design_Testnew by BAT

Revision:
42:44a898adef26
Parent:
1:f3d363ca2343
Child:
43:82d67fb53e61
--- a/buttonArray.cpp	Mon Dec 04 20:14:24 2017 +0000
+++ b/buttonArray.cpp	Mon Dec 04 23:25:38 2017 +0000
@@ -49,11 +49,31 @@
 {
     char* braille;
     if (val == 'A') braille = "011111";
-    if (val == 'X') braille = "000000";
-    if (val == 'Z') braille = "111111";
+    if (val == 'B') braille = "001111";
+    if (val == 'C') braille = "011011";
+    if (val == 'D') braille = "011001";
+    if (val == 'E') braille = "011101";
+    if (val == 'F') braille = "001011";
+    if (val == 'G') braille = "001001";
+    if (val == 'H') braille = "001101";
+    if (val == 'I') braille = "101011";
+    if (val == 'J') braille = "101001";
+    //if (val == 'K') braille = "010111";
+    if (val == 'L') braille = "000111";
     if (val == 'M') braille = "010011";
+    if (val == 'N') braille = "010001";
     if (val == 'O') braille = "010101";
-    if (val == 'K') braille = "100000";
+    if (val == 'P') braille = "000011";
+    if (val == 'Q') braille = "000001";
+    if (val == 'R') braille = "000101";
+    if (val == 'S') braille = "100011";
+    if (val == 'T') braille = "100001";
+    if (val == 'U') braille = "010110";
+    if (val == 'V') braille = "000110";
+    if (val == 'W') braille = "101000";
+    //if (val == 'X') braille = "010010";
+    if (val == 'Y') braille = "010000";
+    //if (val == 'Z') braille = "010100";
     // check if reset
     if (val == ' ') braille = "111111";
     return braille;