Skip to content

Commit 53dd07c

Browse files
authored
Support for NV3041a QSPI (#298)
1 parent 549518a commit 53dd07c

File tree

3 files changed

+710
-0
lines changed

3 files changed

+710
-0
lines changed

include/esp_panel_nv3041a.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#pragma once
2+
3+
#include <esp_lcd.h>
4+
#include <esp_lcd_types.h>
5+
#include <esp_lcd_panel_vendor.h>
6+
#include <driver/spi_master.h>
7+
#include <hal/gpio_types.h>
8+
9+
#ifdef __cplusplus
10+
extern "C"
11+
{
12+
#endif
13+
14+
typedef struct
15+
{
16+
const lcd_init_cmd_t *init_cmds;
17+
uint16_t init_cmds_size;
18+
} nv3041a_vendor_config_t;
19+
20+
// Uses spi_device_handle_t directly and manual GPIO CS to support QSPI (SPI_TRANS_MODE_QIO)
21+
// pixel data transfers, which the NV3041A requires but esp_lcd_panel_io_spi cannot provide
22+
// in ESP-IDF v4.4. cs_gpio is the GPIO number used as chip-select (spics_io_num must be -1).
23+
esp_err_t esp_lcd_new_panel_nv3041a(spi_device_handle_t spi_dev, gpio_num_t cs_gpio,
24+
const esp_lcd_panel_dev_config_t *config, esp_lcd_panel_handle_t *handle);
25+
26+
#ifdef __cplusplus
27+
}
28+
#endif

0 commit comments

Comments
 (0)