/* Write the graphical memory with a single color pixel. 
Use this function to write a single color pixel to the controller memory. */
void ili93xx_write_gram(ili93xx_color_t color)
/* Write the graphical memory with a single color pixel. 
Use this function to write a single color pixel to the controller memory. */
void ili93xx_write_gram(ili93xx_color_t color)
{
	if (g_uc_device_type == DEVICE_TYPE_ILI9325) {
		LCD_IR(0);
		LCD_IR(ILI9325_GRAM_DATA_REG);
	} else if (g_uc_device_type == DEVICE_TYPE_ILI9341) {
		LCD_IR(ILI9341_CMD_MEMORY_WRITE);
		LCD_IR(0);
		LCD_IR(ILI9341_CMD_WRITE_MEMORY_CONTINUE);
	}
	LCD_WD((color >> 16) & 0xFF);
	LCD_WD((color >> 8) & 0xFF);
	LCD_WD(color & 0xFF);
}