Kestrel Interface
Loading...
Searching...
No Matches
waveshare_dsi_touch_5_a.c
Go to the documentation of this file.
1
#include <esp_lcd_touch.h>
2
3
#include "bsp/esp32_p4_nano.h"
4
#include "soc/soc_caps.h"
5
#include <inttypes.h>
6
7
#include "driver/spi_master.h"
8
#include "driver/gpio.h"
9
#include "esp_heap_caps.h"
10
#include "esp_log.h"
11
12
#include "bsp/esp32_p4_nano.h"
13
14
#include "esp_lcd_panel_ops.h"
15
#include "esp_lcd_panel_io.h"
16
#include "esp_lcd_mipi_dsi.h"
17
#include "esp_ldo_regulator.h"
18
#include "esp_dma_utils.h"
19
20
#include <lvgl.h>
21
22
#include "
kest_error_codes.h
"
23
24
int
waveshare_dsi_touch_5_a_init
(lv_disp_t **disp)
25
{
26
bsp_display_cfg_t cfg = {
27
.lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(),
28
.buffer_size = BSP_LCD_DRAW_BUFF_SIZE,
29
.double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE,
30
.flags = {
31
.buff_dma =
true
,
32
.buff_spiram =
false
,
33
.sw_rotate =
false
,
34
}
35
};
36
bsp_display_start_with_config(&cfg);
37
bsp_display_backlight_on();
38
39
return
NO_ERROR
;
40
}
kest_error_codes.h
NO_ERROR
#define NO_ERROR
Definition
kest_error_codes.h:4
waveshare_dsi_touch_5_a_init
int waveshare_dsi_touch_5_a_init(lv_disp_t **disp)
Definition
waveshare_dsi_touch_5_a.c:24
components
drivers
waveshare_dsi_touch_5_a.c
Generated by
1.14.0