Working read code with mode button

Dependencies:   SDFileSystem emic2 mbed-rtos mbed

Fork of BAT_senior_design_Testnew by BAT

buttonArray.h

Committer:
nnguyen45
Date:
2017-12-05
Revision:
43:82d67fb53e61
Parent:
0:5887cb744114

File content as of revision 43:82d67fb53e61:

#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();
};