Function esp_idf_sys::esp_lcd_panel_io_tx_color
source ยท pub unsafe extern "C" fn esp_lcd_panel_io_tx_color(
io: esp_lcd_panel_io_handle_t,
lcd_cmd: c_int,
color: *const c_void,
color_size: usize,
) -> esp_err_t
Expand description
@brief Transmit LCD RGB data
@note This function will package the command and RGB data into a transaction, and push into a queue.
The real transmission is performed in the background (DMA+interrupt).
The caller should take care of the lifecycle of the color
buffer.
Recycling of color buffer should be done in the callback on_color_trans_done()
.
@param[in] io LCD panel IO handle, which is created by factory API like esp_lcd_new_panel_io_spi()
@param[in] lcd_cmd The specific LCD command, set to -1 if no command needed
@param[in] color Buffer that holds the RGB color data
@param[in] color_size Size of color
in memory, in bytes
@return
- ESP_ERR_INVALID_ARG if parameter is invalid
- ESP_OK on success