/* Sets the register in the LCD controller to write commands to.  */
static EMSTATUS setNextReg(uint8_t reg)
/* Sets the register in the LCD controller to write commands to.  */
static EMSTATUS setNextReg(uint8_t reg)
{
  uint16_t data;
  data = ((uint16_t) reg) << 1;
  DVK_writeRegister( (uint16_t *) command_register, 0 );
  DVK_writeRegister( (uint16_t *) command_register, data );
  return DMD_OK;
}