docs(misc): Fixed some identations and formatting in display documentation. (#8895)
Some checks failed
Arduino Lint / lint (push) Has been cancelled
Micropython CI / Build esp32 port (push) Has been cancelled
Micropython CI / Build rp2 port (push) Has been cancelled
Micropython CI / Build stm32 port (push) Has been cancelled
Micropython CI / Build unix port (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT_SWAP (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT (push) Has been cancelled
C/C++ CI / Build OPTIONS_MINIMAL_MONOCHROME (push) Has been cancelled
C/C++ CI / Build OPTIONS_NORMAL_8BIT (push) Has been cancelled
C/C++ CI / amd64 Executable Tests (push) Has been cancelled
C/C++ CI / aarch64 Executable Tests (push) Has been cancelled
C/C++ CI / armv6 Executable Tests (push) Has been cancelled
C/C++ CI / armv7 Executable Tests (push) Has been cancelled
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Check Makefile / Build using Makefile (push) Has been cancelled

This commit is contained in:
Daniel Rosa Franzini
2025-09-17 21:48:06 -03:00
committed by GitHub
parent bf73a48cc0
commit a6d6d7654a

View File

@@ -61,10 +61,10 @@ Therefore the 2 buffers needs to synchronized in `flush_cb` like this:
2. Copy the redrawn areas from `color_p` to the other buffer.
The get the redrawn areas to copy use the following functions
`_lv_refr_get_disp_refreshing()` returns the display being refreshed
`disp->inv_areas[LV_INV_BUF_SIZE]` contains the invalidated areas
`disp->inv_area_joined[LV_INV_BUF_SIZE]` if 1 that area was joined into another one and should be ignored
`disp->inv_p` number of valid elements in `inv_areas`
- `_lv_refr_get_disp_refreshing()` returns the display being refreshed
- `disp->inv_areas[LV_INV_BUF_SIZE]` contains the invalidated areas
- `disp->inv_area_joined[LV_INV_BUF_SIZE]` if 1 that area was joined into another one and should be ignored
- `disp->inv_p` number of valid elements in `inv_areas`
## Display driver
@@ -81,7 +81,8 @@ In the most simple case only the following fields of `lv_disp_drv_t` need to be
- `hor_res` horizontal resolution of the display in pixels.
- `ver_res` vertical resolution of the display in pixels.
- `flush_cb` a callback function to copy a buffer's content to a specific area of the display.
`lv_disp_flush_ready(&disp_drv)` needs to be called when flushing is ready.
- `lv_disp_flush_ready(&disp_drv)` needs to be called when flushing is ready.
LVGL might render the screen in multiple chunks and therefore call `flush_cb` multiple times. To see if the current one is the last chunk of rendering use `lv_disp_flush_is_last(&disp_drv)`.
### Optional fields