pub unsafe extern "C" fn esp_lcd_new_panel_ssd1306(
io: esp_lcd_panel_io_handle_t,
panel_dev_config: *const esp_lcd_panel_dev_config_t,
ret_panel: *mut esp_lcd_panel_handle_t,
) -> esp_err_t
Expand description
@brief Create LCD panel for model SSD1306
@param[in] io LCD panel IO handle @param[in] panel_dev_config general panel device configuration @param[out] ret_panel Returned LCD panel handle @return - ESP_ERR_INVALID_ARG if parameter is invalid - ESP_ERR_NO_MEM if out of memory - ESP_OK on success
@note The default panel size is 128x64. @note Use esp_lcd_panel_ssd1306_config_t to set the correct size. Example usage: @code {c}
esp_lcd_panel_ssd1306_config_t ssd1306_config = { .height = 32 }; esp_lcd_panel_dev_config_t panel_config = { <…> .vendor_config = &ssd1306_config };
esp_lcd_panel_handle_t panel_handle = NULL; esp_lcd_new_panel_ssd1306(io_handle, &panel_config, &panel_handle); @endcode