/* Swap the display direction. This is useful when displaying bmp files.  */
void LCD_SwapDirection(FunctionalState NewState)
/* Swap the display direction. This is useful when displaying bmp files.  */
void LCD_SwapDirection(FunctionalState NewState)
{
  if (NewState != DISABLE)
  {
    if(LCDType == LCD_HX8347D)
    {
      LCD_WriteReg(LCD_REG_22, 0xA0);
    }
    else
    {
      LCD_WriteReg(LCD_REG_3, 0x1008);
    }
  }
  else
  {
    if(LCDType == LCD_HX8347D)
    {
      LCD_WriteReg(LCD_REG_22, 0xE0);
    }
    else
    {
      LCD_WriteReg(LCD_REG_3, 0x1018);
    }    
  } 
}