论坛元老
- 积分
- 5075
- 金钱
- 5075
- 注册时间
- 2013-10-4
- 在线时间
- 654 小时
|
在探索者开发板上移植了UCOSIII+UCGUI3.90a,分享一下
UCGUI我优化了一下感觉刷屏速度还可以
我修改了这两个函数
void LCD_L0_SetPixelIndex(int x, int y, int PixelIndex) {
TFTLCD->TFTLCD_REG = tftlcddev.setxcmd;
TFTLCD->TFTLCD_RAM = x;
TFTLCD->TFTLCD_REG = tftlcddev.setycmd;
TFTLCD->TFTLCD_RAM = y;
TFTLCD->TFTLCD_REG = tftlcddev.wramcmd;
TFTLCD->TFTLCD_RAM = PixelIndex;
}
void LCD_L0_FillRect(int x0, int y0, int x1, int y1) {
for (; y0 <= y1; y0++) {
int x;
TFTLCD->TFTLCD_REG = tftlcddev.setxcmd;
TFTLCD->TFTLCD_RAM = x0;
TFTLCD->TFTLCD_REG = tftlcddev.setycmd;
TFTLCD->TFTLCD_RAM = y0;
TFTLCD->TFTLCD_REG = tftlcddev.wramcmd;
x = x0;
for (; x0 <= x1; x0++)
{
TFTLCD->TFTLCD_RAM = LCD_COLORINDEX;
}
x0 = x;
}
}
|
|