mirror of
https://github.com/esphome/esphome.git
synced 2026-10-15 18:52:51 +00:00
Pass the configured colour order to the mipi_dsi driver
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user