   
   switch(CurrentState) {
     case DISPLEFT:
-      to_write += dispLeft;
-      to_write += charsL[1];
-      to_write += (charsL[2] << 8);
-      
+	  configureToWrite(to_write, LEFT, '1' , '2');
+
       CurrentState = DISPRIGHT;
       break;
     case DISPRIGHT:
-      to_write += dispRight;
-      to_write += charsL[3];
-      to_write += (charsL[4] << 8);
-      
+      configureToWrite(to_write, RIGHT, '3', '4');
+	  
       CurrentState = DISPLEFT;
       break;
   }
-  
-  
-  //to_write = 0 + charsL[4] + (charsL[2] << 8) + dispLeft;
   
   status = device.digitalWrite(to_write);
   


const uint8_t dispRight = (1<<7);
const uint16_t dispLeft = (dispRight<<8);
const uint8_t charsL [16] = {0b1000000,0b1111001,0b0100100,0b0110000,0b0011001,0b0010010,0b0000010,0b1111000,0b0000000,0b0010000,0b0001000,0b0000011,0b1000110,0b0100001,0b0000110,0b0001110};
const uint8_t nothingL = 0b1111111;

enum MasterStates {


I2cDiscreteIoExpander device(1);

#define LEFT 0
#define RIGHT 1

void setup() {
  // put your setup code here, to run once:
  
  Wire.begin();  //A4(SDA), A5(SCL)
  
  PCComm.begin(9600);
  PCComm.print("\n\r[Board Init]\n\r");
