/* Set a given number of pixels to the same color. 
Use this function to write a certain number of pixels to the same color within a set limit. */
void ili93xx_duplicate_pixel(const ili93xx_color_t color, uint32_t count)
/* Set a given number of pixels to the same color. 
Use this function to write a certain number of pixels to the same color within a set limit. */
void ili93xx_duplicate_pixel(const ili93xx_color_t color, uint32_t count)
{
	Assert(count > 0);
	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);
	}
	while (count--) {
		LCD_WD((color >> 16) & 0xFF);
		LCD_WD((color >> 8) & 0xFF);
		LCD_WD(color & 0xFF);
	}
}