Metal Detector
 
Loading...
Searching...
No Matches
display.h File Reference

Header file for the display functionality. More...

#include "ili9341.h"
#include "xpt2046.h"

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
 

Detailed Description

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

Function Documentation

◆ dp_init()

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.

◆ dp_lvgl_init()

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.

Variable Documentation

◆ ili9341_spi

SPI_HandleTypeDef* ili9341_spi
extern

SPI handle for the ILI9341 display

◆ xpt2046_spi

SPI_HandleTypeDef* xpt2046_spi
extern

SPI handle for the XPT2046 touch screen