Skip to content

Commit f46e822

Browse files
1 parent 66a9849 commit f46e822

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/databus/Arduino_ESP32QSPI.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ bool Arduino_ESP32QSPI::begin(int32_t speed, int8_t dataMode)
5656
.data7_io_num = -1,
5757
.max_transfer_sz = (ESP32QSPI_MAX_PIXELS_AT_ONCE * 16) + 8,
5858
.flags = SPICOMMON_BUSFLAG_MASTER | SPICOMMON_BUSFLAG_GPIO_PINS,
59+
.isr_cpu_id = INTR_CPU_ID_AUTO,
5960
.intr_flags = 0};
6061
esp_err_t ret = spi_bus_initialize(ESP32QSPI_SPI_HOST, &buscfg, ESP32QSPI_DMA_CHANNEL);
6162
if (ret != ESP_OK)
@@ -69,6 +70,7 @@ bool Arduino_ESP32QSPI::begin(int32_t speed, int8_t dataMode)
6970
.address_bits = 24,
7071
.dummy_bits = 0,
7172
.mode = (uint8_t)_dataMode,
73+
.clock_source = SPI_CLK_SRC_DEFAULT,
7274
.duty_cycle_pos = 0,
7375
.cs_ena_pretrans = 0,
7476
.cs_ena_posttrans = 0,

src/databus/Arduino_ESP32RGBPanel.cpp

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
5050
.clk_src = LCD_CLK_SRC_DEFAULT,
5151
#endif
5252
.timings = {
53-
.pclk_hz = (_prefer_speed == GFX_NOT_DEFINED) ? _speed : _prefer_speed,
54-
.h_res = w,
55-
.v_res = h,
53+
.pclk_hz = (uint32_t)((_prefer_speed == GFX_NOT_DEFINED) ? _speed : _prefer_speed),
54+
.h_res = (uint32_t)w,
55+
.v_res = (uint32_t)h,
5656
.hsync_pulse_width = _hsync_pulse_width,
5757
.hsync_back_porch = _hsync_back_porch,
5858
.hsync_front_porch = _hsync_front_porch,
5959
.vsync_pulse_width = _vsync_pulse_width,
6060
.vsync_back_porch = _vsync_back_porch,
6161
.vsync_front_porch = _vsync_front_porch,
6262
.flags = {
63-
.hsync_idle_low = (_hsync_polarity == 0) ? 1 : 0,
64-
.vsync_idle_low = (_vsync_polarity == 0) ? 1 : 0,
63+
.hsync_idle_low = (uint32_t)((_hsync_polarity == 0) ? 1 : 0),
64+
.vsync_idle_low = (uint32_t)((_vsync_polarity == 0) ? 1 : 0),
6565
.de_idle_high = _de_idle_high,
6666
.pclk_active_neg = _pclk_active_neg,
6767
.pclk_idle_high = _pclk_idle_high,
@@ -72,6 +72,7 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
7272
#else
7373
.bits_per_pixel = 16,
7474
.num_fbs = 1,
75+
.bounce_buffer_size_px = 0,
7576
#endif
7677
.sram_trans_align = 8,
7778
.psram_trans_align = 64,
@@ -80,8 +81,14 @@ uint16_t *Arduino_ESP32RGBPanel::getFrameBuffer(int16_t w, int16_t h)
8081
.de_gpio_num = _de,
8182
.pclk_gpio_num = _pclk,
8283
.disp_gpio_num = GPIO_NUM_NC, // -1
84+
.data_gpio_nums = {0},
8385
.flags = {
86+
.disp_active_low = true,
87+
.refresh_on_demand = false,
8488
.fb_in_psram = true, // allocate frame buffer from PSRAM
89+
.double_fb = false,
90+
.no_fb = false,
91+
.bb_invalidate_cache = false,
8592
},
8693
};
8794

0 commit comments

Comments
 (0)