/* Set the display orientation. 
Example of usage (for setting landscape mode):  */
void hx8347a_set_orientation(uint8_t flags)
/* Set the display orientation. 
Example of usage (for setting landscape mode):  */
void hx8347a_set_orientation(uint8_t flags)
{
	uint8_t setting = 0;
	uint8_t regval;
	setting |= (flags & HX8347A_FLIP_X ? HX8347A_FLIP_X_MASK : 0);
	setting |= (flags & HX8347A_FLIP_Y ? HX8347A_FLIP_Y_MASK : 0);
	setting |= (flags & HX8347A_SWITCH_XY ? HX8347A_SWITCH_XY_MASK : 0);
	regval = hx8347a_read_register(HX8347A_MEMACCESSCTRL);
	regval &= ~(HX8347A_FLIP_X_MASK | HX8347A_FLIP_Y_MASK | HX8347A_SWITCH_XY_MASK);
	regval |= setting;
	hx8347a_write_register(HX8347A_MEMACCESSCTRL, regval);
}