小弟下午做了个,但是不行
望楼主不要见笑
void LCD_DrawPicture(u16 StartX,u16 StartY,u16 Width,u16 Height,u16*pic)
{ u16 i;
LCD_WriteReg(0x01,0x0100);
LCD_WriteReg(0x03,0x1038);
LCD_WriteReg(0x60,0x2700);
LCD_SetWindows(StartX,StartY,Width + StartX - 1,Height + StartY - 1);
LCD_SetCursor(StartX,StartY);
LCD_WriteRAM_Prepare();
for (i=0;i<(Width * Height);i++)
{
LCD_WriteRAM(*pic++);
delay_us(1);
}
}
小弟下午做了个,但是不行
望楼主不要见笑
void LCD_DrawPicture(u16 StartX,u16 StartY,u16 Width,u16 Height,u16*pic)
{ u16 i;
LCD_WriteReg(0x01,0x0100);
LCD_WriteReg(0x03,0x1038);
LCD_WriteReg(0x60,0x2700);
LCD_SetWindows(StartX,StartY,Width + StartX - 1,Height + StartY - 1);
LCD_SetCursor(StartX,StartY);
LCD_WriteRAM_Prepare();
for (i=0;i<(Width * Height);i++)
{
LCD_WriteRAM(*pic++);
delay_us(1);
}
}
举报