From b172c64a8c8d7189f66c1ed5afae19c9a8fbef39 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Mon, 18 Dec 2023 13:50:23 +0100 Subject: [PATCH] docs: fix syntax --- docs/porting/disp.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/porting/disp.rst b/docs/porting/disp.rst index 52dcd3532..91516be76 100644 --- a/docs/porting/disp.rst +++ b/docs/porting/disp.rst @@ -179,7 +179,7 @@ In case of RGB565 color format it might be required to swap the 2 bytes because the SPI, I2C or 8 bit parallel port periphery sends them in the wrong order. The ideal solution is configure the hardware to handle the 16 bit data with different byte order, -however if it's not possible `:cpp:expr:`lv_draw_sw_rgb565_swap(buf, buf_size_in_px)` +however if it's not possible :cpp:expr:`lv_draw_sw_rgb565_swap(buf, buf_size_in_px)` can be called in the ``flush_cb`` to swap the bytes. If you wish you can also write your own function, or use assembly instructions for