1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

Update README.md

This commit is contained in:
Gabor Kiss-Vamosi 2017-11-29 11:43:09 +01:00 committed by GitHub
parent d6692e3ead
commit 9d87a82210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,16 +49,16 @@ disp_drv_register(&disp_drv);
You can configure the driver for different operation modes.
#### Using internal buffering (VDB)
#### Internal buffering (VDB)
The graphics library works with an internal buffering mechanism to create advances graphics features with only one frame buffer. The internal buffer is called VDB (Virtual Display Buffer) and its size can be adjusted in lv_conf.h.
When `LV_VDB_SIZE` not zero then the internal buffering is used and you have to provide a function which flushes the buffers content to your display:
```c
disp_drv.disp_flush = my_disp_flush;
```
In the flush function you can use DMA or any hardware to do the flushing in the background, but when the flushing is ready you **have to call `lv_flush_ready()`**
In the flush function you can use DMA or any hardware to do the flushing in the background, but when the flushing is ready you have to call `lv_flush_ready()`
#### Using harware acceleration (GPU)
#### Hardware acceleration (GPU)
If your MCU supports graphical acceration (GPU) then you can use it in the following way. (Using GPU is totally optional)
The `mem_blend` and `mem_fill` fields of a display driver is used to interface with a GPU.
```c