Select one of the symbols to view example projects that use it.
 
Outline
#include <stdbool.h>
#include "esp_err.h"
#include "esp_lcd_panel_dev.h"
esp_lcd_panel_ssd1306_config_t
esp_lcd_new_panel_ssd1306(const esp_lcd_panel_io_handle_t, const esp_lcd_panel_dev_config_t *, esp_lcd_panel_handle_t *);
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/esp_lcd/include/esp_lcd_panel_ssd1306.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #include <stdbool.h> #include "esp_err.h" #include "esp_lcd_panel_dev.h" #ifdef __cplusplus extern "C" { #endif /** * @brief SSD1306 configuration structure * * To be used as esp_lcd_panel_dev_config_t.vendor_config. * See esp_lcd_new_panel_ssd1306(). *//* ... */ typedef struct { /** * @brief Display's height in pixels (64(default) or 32) *//* ... */ uint8_t height; }{ ... } esp_lcd_panel_ssd1306_config_t; /** * @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 *//* ... */ esp_err_t esp_lcd_new_panel_ssd1306(const esp_lcd_panel_io_handle_t io, const esp_lcd_panel_dev_config_t *panel_dev_config, esp_lcd_panel_handle_t *ret_panel); #ifdef __cplusplus }{...} #endif
Details