Chapter 2. API Reference
• ESP_ERR_NOT_SUPPORTED if some configuration can’t be satisfied, e.g. pixel clock out of
the range
• ESP_ERR_NO_MEM if out of memory
• ESP_OK on success
Parameters
• [in] bus: Intel 8080 bus handle, created by esp_lcd_new_i80_bus()
• [in] io_config: IO configuration, for i80 interface
• [out] ret_io: Returned panel IO handle
Structures
struct esp_lcd_panel_io_event_data_t
Type of LCD panel IO event data.
struct esp_lcd_panel_io_spi_config_t
Panel IO configuration structure, for SPI interface.
Public Members
int cs_gpio_num
GPIO used for CS line
int dc_gpio_num
GPIO used to select the D/C line, set this to -1 if the D/C line not controlled by manually pulling high/low
GPIO
int spi_mode
Traditional SPI mode (0~3)
unsigned int pclk_hz
Frequency of pixel clock
size_t trans_queue_depth
Size of internal transaction queue
esp_lcd_panel_io_color_trans_done_cb_t on_color_trans_done
Callback invoked when color data transfer has finished
void *user_ctx
User private data, passed directly to on_color_trans_done’s user_ctx
int lcd_cmd_bits
Bit-width of LCD command
int lcd_param_bits
Bit-width of LCD parameter
unsigned int dc_as_cmd_phase : 1
D/C line value is encoded into SPI transaction command phase
unsigned int dc_low_on_data : 1
If this flag is enabled, DC line = 0 means transfer data, DC line = 1 means transfer command; vice versa
unsigned int octal_mode : 1
transmit with octal mode (8 data lines), this mode is used to simulate Intel 8080 timing
struct esp_lcd_panel_io_i2c_config_t
Public Members
uint32_t dev_addr
I2C device address
Espressif Systems 310
Submit Document Feedback
Release v4.4