MT6572 240x240的屏除了配置 LCM_HEIGHT=240 LCM_WIDTH=240, 显示滚动
进入动画后屏总是循环滚动, 有遇到过没?
MCU 8位并口屏
不懂,帮顶
是不是颜色位数不对。查一下是565还是666
565的, uboot显示是正常的, 到动画后就会滚动, 进入laucher后也会滚动, 好像是有更新就会不断偏移
是刷屏区域设置的不对吧?
刷屏区域看不出哪里有问题
static void lcm_update(unsigned int x, unsigned int y,
unsigned int width, unsigned int height)
{
unsigned short x0, y0, x1, y1;
unsigned short h_X_start,l_X_start,h_X_end,l_X_end,h_Y_start,l_Y_start,h_Y_end,l_Y_end;
x0 = (unsigned short)x;
y0 = (unsigned short)y;
x1 = (unsigned short)x+width-1;
y1 = (unsigned short)y+height-1;
h_X_start=((x0&0xFF00)>>8);
l_X_start=(x0&0x00FF);
h_X_end=((x1&0xFF00)>>8);
l_X_end=(x1&0x00FF);
h_Y_start=((y0&0xFF00)>>8);
l_Y_start=(y0&0x00FF);
h_Y_end=((y1&0xFF00)>>8);
l_Y_end=(y1&0x00FF);
send_ctrl_cmd(0x2A);
send_data_cmd(h_X_start);
send_data_cmd(l_X_start);
send_data_cmd(h_X_end);
send_data_cmd(l_X_end);
send_ctrl_cmd(0x2B);
send_data_cmd(h_Y_start);
send_data_cmd(l_Y_start);
send_data_cmd(h_Y_end);
send_data_cmd(l_Y_end);
//send_ctrl_cmd(0x29);
send_ctrl_cmd(0x2C);
你是不是设置了寄存器做了选转?
