单片机驱动TFT液晶原理图,
void address_set(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2)
{
main_W_com_data(0x0020,x1);//设置X坐标位置
main_W_com_data(0x0021,y1);//设置Y坐标位置
main_W_com_data(0x0050,x1); //开始X
main_W_com_data(0x0052,y1); //开始Y
main_W_com_data(0x0051,x2); //结束X
main_W_com_data(0x0053,y2); //结束Y
main_Write_COM(0x0022);
}
1