Header file for the display functionality. More...
Go to the source code of this file.
Functions | |
void | dp_lvgl_init (void) |
Initialize LVGL and set up the display buffer and input device. | |
void | dp_init (void) |
Initialize the display and touchscreen. | |
Variables | |
SPI_HandleTypeDef * | ili9341_spi |
SPI_HandleTypeDef * | xpt2046_spi |
Header file for the display functionality.
This file contains the declarations for functions and extern variables related to the display functionality. It includes functions for initializing the display and setting up LVGL for the display and input device. Additionally, it defines the external SPI handles used for interfacing with the ILI9341 and XPT2046.
Created on: Jul 5, 2024 Author: Viktor
void dp_init | ( | void | ) |
Initialize the display and touchscreen.
This function initializes the ILI9341 display and the XPT2046 touchscreen, including setting calibration values for the touchscreen.
void dp_lvgl_init | ( | void | ) |
Initialize LVGL and set up the display buffer and input device.
This function initializes LVGL, creates a display and input device, sets up the display buffer, and assigns callback functions for display flushing and input reading.
|
extern |
SPI handle for the ILI9341 display
|
extern |
SPI handle for the XPT2046 touch screen