怎么移植就不说了,网上很多,只谈下最近碰到的一个现象
static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)
{
/*The most simple case (but also the slowest) to put all pixels to the screen one-by-one*/
// int32_t x;
// int32_t y;
// int32_t offset;
// for(y = area->y1; y <= area->y2; y++) {
// offset = 0xc0000000 + (area->x1 + y * disp_drv->hor_res)*4;
// for(x = area->x1; x <= area->x2; x++) {
// /*Put a pixel to the display. For example:*/
// /*put_px(x, y, *color_p)*/
BSP_LCD_DrawPixel(x,y,color_p->full);
// *(uint32_t*)(offset)=color_p->full;
// offset+=4;
// color_p++;
// }
// }
uint32_t startx,starty;
uint32_t sizex,sizey;
if(area->x1<area->x2)
{
startx=area->x1;
sizex = area->x2 - area->x1 + 1;