20 lines
412 B
C
20 lines
412 B
C
#pragma once
|
|
|
|
#include "stdbool.h"
|
|
|
|
#include "esp_lcd_panel_io.h"
|
|
|
|
#define LCD_SPI_HOST SPI2_HOST
|
|
#define TOUCH_SPI_HOST SPI3_HOST
|
|
|
|
#define TFT_HRES CONFIG_TFT_HRES
|
|
#define TFT_VRES CONFIG_TFT_VRES
|
|
#define TFT_BPP CONFIG_TFT_BPP
|
|
|
|
#define LVGL_BUF_SIZE ((TFT_VRES * TFT_HRES) / 10) * (TFT_BPP / 8)
|
|
|
|
/**
|
|
* Initializes the display TFT and touchscreen.
|
|
*/
|
|
void init_display(void);
|