File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ For a ready to use ESP32 project take look at the [lv_port_esp32](https://github
7
7
- [ Supported indev controllers] ( #supported-indev-controllers )
8
8
- [ Support for predefined development kits] ( #support-for-predefined-development-kits )
9
9
- [ Thread-safe I2C with I2C Manager] ( #thread-safe-i2c-with-i2c-manager )
10
+ - [ Backlight control] ( #backlight-control )
10
11
11
12
** NOTE:** You need to set the display horizontal and vertical size, color depth and
12
13
swap of RGB565 color on the LVGL configuration menuconfig (it's not handled automatically).
@@ -79,3 +80,14 @@ talk to devices on the I2C ports without getting in each other's way. These driv
79
80
use a built-in copy of I2C Manager to talk to the I2C port, but you can also use
80
81
the I2C Manager component itself and have others play nice with LVGL and vice-versa.
81
82
[ Click here] ( i2c_manager/README.md ) for details.
83
+
84
+
85
+ ## Backlight control
86
+
87
+ Control of LCD's backlight is provided by separate module that is independent from the display driver.
88
+ Configuration of the backlight controller can be found in menuconfig ` LVGL ESP Drivers -> LVGL TFT Display controller ` .
89
+
90
+ There are three modes of operation:
91
+ 1 . Off - No backlight control
92
+ 2 . Switch - Allows ON/OFF control
93
+ 3 . PWM - Allows brightness control (by Pulse-Width-Modulated signal)
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ typedef void * disp_backlight_h;
27
27
/**
28
28
* @brief Configuration structure of backlight controller
29
29
*
30
+ * Must be passed to disp_backlight_new() for correct configuration
30
31
*/
31
32
typedef struct {
32
33
bool pwm_control ;
@@ -35,7 +36,7 @@ typedef struct {
35
36
36
37
// Relevant only for PWM controlled backlight
37
38
// Ignored for switch (ON/OFF) backlight control
38
- int timer_idx ; // ledc_timer_t
39
+ int timer_idx ; // ledc_timer_t
39
40
int channel_idx ; // ledc_channel_t
40
41
} disp_backlight_config_t ;
41
42
You can’t perform that action at this time.
0 commit comments