24 lines
651 B
C
24 lines
651 B
C
#include "bsp/esp-bsp.h"
|
|
#include "bsp.h"
|
|
|
|
void bsp_display_start(void)
|
|
{
|
|
bsp_display_cfg_t cfg = {
|
|
.lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(),
|
|
.buffer_size = BSP_LCD_DRAW_BUFF_SIZE,
|
|
.double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE,
|
|
.flags = {
|
|
.buff_dma = true,
|
|
.buff_spiram = false,
|
|
.sw_rotate = false,
|
|
}};
|
|
bsp_display_start_with_config(&cfg);
|
|
bsp_display_backlight_on();
|
|
}
|
|
|
|
void bsp_touch_init(void)
|
|
{
|
|
// The touch driver is initialized as part of bsp_display_start()
|
|
// in the esp-bsp component, so this function can be left empty.
|
|
}
|