|
3 | 3 | #include"lcd_types.h" |
4 | 4 | #include"modlcd_bus.h" |
5 | 5 | #include"spi_bus.h" |
6 | | -#include"spi_panel_bus.h" |
7 | 6 |
|
8 | 7 | // esp-idf includes |
9 | 8 | #include"driver/spi_common.h" |
@@ -366,15 +365,15 @@ mp_lcd_err_t spi_init(mp_obj_t obj, uint16_t width, uint16_t height, uint8_t bpp |
366 | 365 | self->panel_io_config.trans_queue_depth++; |
367 | 366 | } |
368 | 367 | }else { |
369 | | -self->panel_io_config.trans_queue_depth=1; |
| 368 | +self->panel_io_config.trans_queue_depth=10; |
370 | 369 | } |
371 | 370 |
|
372 | 371 | mp_lcd_err_tret=spi_bus_initialize(self->host,&self->bus_config,SPI_DMA_CH_AUTO); |
373 | 372 | if (ret!=0) { |
374 | 373 | mp_raise_msg_varg(&mp_type_ValueError,MP_ERROR_TEXT("%d(spi_bus_initialize)"),ret); |
375 | 374 | } |
376 | 375 |
|
377 | | -ret=lcdbus_new_panel_io_spi(self->bus_handle,&self->panel_io_config,&self->panel_io_handle.panel_io,double_buffer); |
| 376 | +ret=esp_lcd_new_panel_io_spi(self->bus_handle,&self->panel_io_config,&self->panel_io_handle.panel_io); |
378 | 377 | if (ret!=0) { |
379 | 378 | mp_raise_msg_varg(&mp_type_ValueError,MP_ERROR_TEXT("%d(esp_lcd_new_panel_io_spi)"),ret); |
380 | 379 | } |
|