esp_lcd_new_panel_ssd1306() function
Create LCD panel for model SSD1306 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);
- ESP_ERR_INVALID_ARG if parameter is invalid - ESP_ERR_NO_MEM if out of memory - ESP_OK on success
The default panel size is 128x64. Use esp_lcd_panel_ssd1306_config_t to set the correct size. Example usage:
{c}