   
   Wire.begin();  //A4(SDA), A5(SCL)
   
-  PCComm.begin(9600);
+  PCComm.begin(57600);
   PCComm.print("\n\r[Board Init]\n\r");
   
 

void loop()
{
  uint8_t status = 0;
  static uint16_t iter = 0;
  static uint16_t i = 4;
  uint16_t to_write = 0;
  
  switch(CurrentState) {
    case DISPLEFT:
	  configureToWrite(to_write, LEFT, '1' , '2');

      CurrentState = DISPRIGHT;
      break;
    case DISPRIGHT:
      configureToWrite(to_write, RIGHT, '3', '4');
	  
      CurrentState = DISPLEFT;
      break;
  }
  
  status = device.digitalWrite(to_write);
  
  
  /*
  
  PCComm.print("[Wrote '");
  PCComm.print(to_write, BIN);
  PCComm.print("' to board iter: ");
  PCComm.print(iter); 
  PCComm.print("]\n\r");
  */
  
  //delayMicroseconds(100);
  ++iter;
}

void configureToWrite(uint16_t & to_write, bool l_r, char left_digit, char right_digit){

	if(isdigit(left_digit)){
		to_write += charsL[(int)left_digit - 48];
	}
	else if (left_digit >= 97 && left_digit <= 102){
		to_write += charsL[(int)left_digit - 87];
	}
	
	if(isdigit(right_digit)){
		to_write += (charsL[(int)right_digit - 48] << 8);
	}
	else if (right_digit >= 97 && right_digit <= 102){
		to_write += (charsL[(int)right_digit - 87] << 8);
	}
	
}
