|
void LCD_blockClear_ST7787(kal_uint16 x1,kal_uint16 y1,kal_uint16 x2,kal_uint16 y2,kal_uint16 data)
{
......
SET_LCD_CMD_PARAMETER(0,LCD_CMD, 0x02);
SET_LCD_CMD_PARAMETER(1,LCD_DATA, ((x1&0xff00)>>8));
SET_LCD_CMD_PARAMETER(2,LCD_CMD, 0x03);
SET_LCD_CMD_PARAMETER(3,LCD_DATA, (x1&0xff));
SET_LCD_CMD_PARAMETER(4,LCD_CMD, 0x04);
SET_LCD_CMD_PARAMETER(5,LCD_DATA, ((x2&0xff00)>>8));
SET_LCD_CMD_PARAMETER(6,LCD_CMD, 0x05);
SET_LCD_CMD_PARAMETER(7,LCD_DATA, (x2&0xff));
SET_LCD_CMD_PARAMETER(8,LCD_CMD, 0x06);
SET_LCD_CMD_PARAMETER(9,LCD_DATA, ((y1&0xff00)>>8));
SET_LCD_CMD_PARAMETER(10,LCD_CMD, 0x07);
SET_LCD_CMD_PARAMETER(11,LCD_DATA, (y1&0xff));
SET_LCD_CMD_PARAMETER(12,LCD_CMD, 0x08);
SET_LCD_CMD_PARAMETER(13,LCD_DATA, ((y2&0xff00)>>8));
SET_LCD_CMD_PARAMETER(14,LCD_CMD, 0x09);
SET_LCD_CMD_PARAMETER(15,LCD_DATA, (y2&0xff));
SET_LCD_CMD_PARAMETER(16,LCD_CMD, 0x22);
SET_LCD_ROI_CTRL_NUMBER_OF_CMD(17);
......
} |
|