Fork of original senior design repo

Dependencies:   SDFileSystem mbed-rtos mbed wave_player emic2

Fork of BAT_senior_design by BAT

buttonArray.h

Committer:
aismail1997
Date:
2017-11-17
Revision:
26:79cdf893c8b8
Parent:
23:b2e53ce54b3e

File content as of revision 26:79cdf893c8b8:

#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(); // return buttons ascii representation
    void releaseButtons();// release all buttons;
    int* pinsUp(char val);    
    char* getBraille(char val);
    void setup();
};