Led Control (Ledc) - Espressif ESP32-S2 Programming Manual

Hide thumbs Also See for ESP32-S2:
Table of Contents

Advertisement

Chapter 2. API Reference
esp_err_t
esp_lcd_new_panel_nt35510(const
Create LCD panel for model NT35510.
Return
• ESP_ERR_INVALID_ARG if parameter is invalid
• ESP_ERR_NO_MEM if out of memory
• ESP_OK on success
Parameters
• [in] io: LCD panel IO handle
• [in] panel_dev_config: general panel device configuration
• [out] ret_panel: Returned LCD panel handle
esp_err_t
esp_lcd_new_panel_ssd1306(const
Create LCD panel for model SSD1306.
Return
• ESP_ERR_INVALID_ARG if parameter is invalid
• ESP_ERR_NO_MEM if out of memory
• ESP_OK on success
Parameters
• [in] io: LCD panel IO handle
• [in] panel_dev_config: general panel device configuration
• [out] ret_panel: Returned LCD panel handle
Structures
struct esp_lcd_panel_dev_config_t
Configuration structure for panel device.
Public Members
int reset_gpio_num
GPIO used to reset the LCD panel, set to -1 if it's not used
esp_lcd_color_space_t
Set the color space used by the LCD panel
unsigned int bits_per_pixel
Color depth, in bpp
unsigned int reset_active_high : 1
Setting this if the panel reset is high level active

2.2.11 LED Control (LEDC)

Introduction
The LED control (LEDC) peripheral is primarily designed to control the intensity of LEDs, although it can also be
used to generate PWM signals for other purposes. It has 8 channels which can generate independent waveforms that
can be used, for example, to drive RGB LED devices.
The PWM controller can automatically increase or decrease the duty cycle gradually, allowing for fades without any
processor interference.
Espressif Systems
esp_lcd_panel_dev_config_t
esp_lcd_panel_handle_t
esp_lcd_panel_dev_config_t
esp_lcd_panel_handle_t
color_space
315
Submit Document Feedback
esp_lcd_panel_io_handle_t
*ret_panel)
esp_lcd_panel_io_handle_t
*ret_panel)
io,
const
*panel_dev_config,
io,
const
*panel_dev_config,
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF