新手上路
- 积分
- 30
- 金钱
- 30
- 注册时间
- 2018-2-6
- 在线时间
- 2 小时
|
1金钱
请原子哥或各位的大佬帮忙,给个4.3寸lcd显示图片的例程以供参考,小弟直接是使用image2lcd取模800*480的图片16位真彩数据,用开窗函数lcd_set_window,和光标设置函数,直接使LCD->RAM=color的方式得出的图像均为模糊图像void LCD_Clear1(unsigned char *str)
{
u32 index=0;
u16 color;
u32 totalpoint=418;
totalpoint*=760;
LCD_Set_Window(0,0,418,760);
LCD_SetCursor(0x00,0x0000);
LCD_WriteRAM_Prepare();
for(index=0;index<totalpoint;index++)
{
color=((u16)*str++)<<8;
color|=*str;
LCD->LCD_RAM=color;
str+=2;
}
}
|
|