Skip to content

Commit 65a7f7b

Browse files
committed
adds quad data support for SPI.
1 parent 692bf40 commit 65a7f7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext_mod/lcd_bus/esp32_src/spi_bus.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ static mp_obj_t mp_lcd_spi_bus_make_new(const mp_obj_type_t *type, size_t n_args
126126
self->panel_io_config.flags.cs_high_active = (unsigned int)args[ARG_cs_high_active].u_bool;
127127
self->panel_io_config.flags.octal_mode = 0;
128128

129+
if (spi_bus->quad) {
130+
self->panel_io_config.flags.quad_mode = 1;
131+
}
132+
129133
self->panel_io_handle.del = &spi_del;
130134
self->panel_io_handle.init = &spi_init;
131135
self->panel_io_handle.get_lane_count = &spi_get_lane_count;

0 commit comments

Comments
 (0)