IT976 972清屏函数补充

void ScreenClear(void)

{

    uint16_t* addr = (uint16_t*) ithLcdGetBaseAddrA();

    int size = ithLcdGetPitch() * ithLcdGetHeight();

    uint16_t* base = ithMapVram((uint32_t) addr, size, ITH_VRAM_WRITE);

 

    memset(base, 0, size);

    ithUnmapVram(base, size);

}

参考这个做法, 可在可视对讲项目(IT972)的SDK的project/doorbell_indoor2/screen.c里面添加

你可能感兴趣的:(ITE)