Commit 02ce530
committed
samples: subsys: input: draw_touch_events: set pixel format at runtime
Problem: On STM32U5G9J-DK1 + st_lcd_dsi_mb1835, the sample could BUS
FAULT with SCREEN_WIDTH_TO_CROSS_DIM=25 and show only a horizontal
line with 20.
Root cause: The tile buffer BPP is derived from the devicetree pixel
format (e.g., RGB888 = 3 BPP), but the driver may be using a
different current pixel format.
Fix: Explicitly set the driver pixel format to the DT-selected format at
init.
Signed-off-by: Charles Dias <charlesdias.cd@outlook.com>1 parent 2a09063 commit 02ce530
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
129 | 137 | | |
130 | 138 | | |
131 | 139 | | |
| |||
0 commit comments