zlgopen / awtk

AWTK = Toolkit AnyWhere(a cross-platform embedded GUI)
GNU Lesser General Public License v2.1
3.12k stars 770 forks source link

Any demos for SPI screen? #79

Open suda-morris opened 5 years ago

suda-morris commented 5 years ago

Is there any demos for SPI screen? or some suggestions/guides?

xianjimli commented 5 years ago

目前还没支持,谢谢关注。我先研究一下。

suda-morris commented 5 years ago

@xianjimli lcd驱动是否只需要提供一个flush函数即可? 原型类似于:esp_err_t (*flush)(esp_lcd_t *lcd, int x1, int y1, int x2, int y2, esp_color_t *color);

xianjimli commented 5 years ago

你参考一下这个:https://github.com/zlgopen/awtk/blob/master/src/lcd/lcd_reg.inc

suda-morris commented 5 years ago

@xianjimli 感谢回复。 AWTK能否让这类SPI屏也跑一些简单的动画效果呢?像littlevgl支持的那种简单动画,可以吗? 不带LCD controller的MCU是否就无法使用mem lcd了?

xianjimli commented 5 years ago

只有有内存就可以。使用单framebuffer,flush函数刷新脏矩形内容到LCD即可。