找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 903|回復(fù): 0
打印 上一主題 下一主題
收起左側(cè)

OLED怎么添加lvgl

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:1122975 發(fā)表于 2024-6-1 10:01 | 只看該作者 回帖獎(jiǎng)勵(lì) |正序?yàn)g覽 |閱讀模式
下面這個(gè)接口函數(shù)非常重要:
static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)
{
        disp_drv_p=disp_drv;
    if(disp_flush_enabled) {
        /*The most simple case (but also the slowest) to put all pixels to the screen one-by-one*/

        int32_t x;
        int32_t y;
        for(y = area->y1; y <= area->y2; y++) {
            for(x = area->x1; x <= area->x2; x++) {
                /*Put a pixel to the display. For example:*/
                /*put_px(x, y, *color_p)*/
           OLED_DrawPoint2(x,y,color_p->full);
                color_p++;
            }
    }
}

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表