25 lines
533 B
C
25 lines
533 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)
|
|
|
|
/**
|
|
* Draws a test bitmap of stripes of colors to the LCD.
|
|
*/
|
|
void test_draw_bitmap(esp_lcd_panel_handle_t panel_handle);
|
|
|
|
/**
|
|
* Initializes the display TFT and touchscreen.
|
|
*/
|
|
void init_display(void);
|