28#ifndef INC_TOUCHCALIBRATION_HPP_
29#define 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...