F439_CPP_SPI_RA8875_TFT_LCD_04 1.0
STM32F439 SPI RA8875 7-inch TFT display with FRAM-backed touch calibration, built on the STM32_GFX, STM32_RA8875 and STM32_MB85RS64V libraries
Loading...
Searching...
No Matches
touchCalibration.hpp
Go to the documentation of this file.
1
28#ifndef INC_TOUCHCALIBRATION_HPP_
29#define INC_TOUCHCALIBRATION_HPP_
30
31#include "Adafruit_RA8875.h"
32
43bool touchCalibrationCompute(const tsPoint_t *display, const tsPoint_t *screen, tsMatrix_t *matrix);
44
52bool touchCalibrationApply(const tsMatrix_t *matrix, const tsPoint_t *raw, tsPoint_t *display);
53
74bool touchCalibrationRun(Adafruit_RA8875 *display, UART_HandleTypeDef *uart, tsMatrix_t *matrix);
75
76#endif /* INC_TOUCHCALIBRATION_HPP_ */
Class that stores state and functions for interacting with the RA8875 display controller.
bool touchCalibrationRun(Adafruit_RA8875 *display, UART_HandleTypeDef *uart, tsMatrix_t *matrix)
Runs the interactive calibration: draws three targets one at a time, waits for the user to touch each...
bool touchCalibrationApply(const tsMatrix_t *matrix, const tsPoint_t *raw, tsPoint_t *display)
Converts one raw touch reading into a display pixel position.
bool touchCalibrationCompute(const tsPoint_t *display, const tsPoint_t *screen, tsMatrix_t *matrix)
Calculates the calibration matrix from three known display points and the raw touch readings taken at...