Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32987f1

Browse files
committed
removes changes to spibus
1 parent0cc8fc5 commit32987f1

File tree

3 files changed

+2
-446
lines changed

3 files changed

+2
-446
lines changed

‎ext_mod/lcd_bus/esp32_src/spi_bus.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include"lcd_types.h"
44
#include"modlcd_bus.h"
55
#include"spi_bus.h"
6-
#include"spi_panel_bus.h"
76

87
// esp-idf includes
98
#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
366365
self->panel_io_config.trans_queue_depth++;
367366
}
368367
}else {
369-
self->panel_io_config.trans_queue_depth=1;
368+
self->panel_io_config.trans_queue_depth=10;
370369
}
371370

372371
mp_lcd_err_tret=spi_bus_initialize(self->host,&self->bus_config,SPI_DMA_CH_AUTO);
373372
if (ret!=0) {
374373
mp_raise_msg_varg(&mp_type_ValueError,MP_ERROR_TEXT("%d(spi_bus_initialize)"),ret);
375374
}
376375

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);
378377
if (ret!=0) {
379378
mp_raise_msg_varg(&mp_type_ValueError,MP_ERROR_TEXT("%d(esp_lcd_new_panel_io_spi)"),ret);
380379
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp