Skip to content

Commit

Permalink
framebuffer: BSP_LCD_DRAW_BUF_DOUBLE set bool type
Browse files Browse the repository at this point in the history
  • Loading branch information
espressif2022 committed Jun 29, 2023
1 parent 03ba5d9 commit 67cb318
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
5 changes: 2 additions & 3 deletions esp-box-lite/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ menu "Board Support Package"
Framebuf is used for lvgl rendering output.

config BSP_LCD_DRAW_BUF_DOUBLE
int "LCD framebuf number"
default 0
range 0 1
bool "LCD double framebuf"
default n
help
Whether to enable double framebuf.
endmenu
Expand Down
6 changes: 5 additions & 1 deletion esp-box-lite/esp-box-lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ static lv_disp_t *bsp_display_lcd_init(void)
.io_handle = io_handle,
.panel_handle = panel_handle,
.buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT,
.double_buffer = CONFIG_BSP_LCD_DRAW_BUF_DOUBLE,
#if CONFIG_BSP_LCD_DRAW_BUF_DOUBLE
.double_buffer = 1,
#else
.double_buffer = 0,
#endif
.hres = BSP_LCD_H_RES,
.vres = BSP_LCD_V_RES,
.monochrome = false,
Expand Down
5 changes: 2 additions & 3 deletions esp-box/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ menu "Board Support Package"
Framebuf is used for lvgl rendering output.

config BSP_LCD_DRAW_BUF_DOUBLE
int "LCD framebuf number"
default 0
range 0 1
bool "LCD double framebuf"
default n
help
Whether to enable double framebuf.
endmenu
Expand Down
6 changes: 5 additions & 1 deletion esp-box/esp-box.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ static lv_disp_t *bsp_display_lcd_init(void)
.io_handle = io_handle,
.panel_handle = panel_handle,
.buffer_size = BSP_LCD_H_RES * CONFIG_BSP_LCD_DRAW_BUF_HEIGHT,
.double_buffer = CONFIG_BSP_LCD_DRAW_BUF_DOUBLE,
#if CONFIG_BSP_LCD_DRAW_BUF_DOUBLE
.double_buffer = 1,
#else
.double_buffer = 0,
#endif
.hres = BSP_LCD_H_RES,
.vres = BSP_LCD_V_RES,
.monochrome = false,
Expand Down

0 comments on commit 67cb318

Please sign in to comment.