Pass the configured colour order to the mipi_dsi driver

This commit is contained in:
J. Nick Koston
2026-10-13 17:31:18 -10:00
committed by GitHub
parent aac450a874
commit d88c48835b
+1
View File
@@ -198,6 +198,7 @@ async def to_code(config: ConfigType) -> None:
model.get_dimensions(config)
)
var = cg.new_Pvariable(config[CONF_ID], width, height, color_depth, pixel_mode)
cg.add(var.set_color_mode(COLOR_ORDERS[config[CONF_COLOR_ORDER]]))
cg.add(var.set_big_endian(config[CONF_BYTE_ORDER] == BYTE_ORDER_BIG))
sequence = model.get_sequence(config)