32#ifndef INC_TOUCHCALIBRATIONSTORAGE_HPP_
33#define INC_TOUCHCALIBRATIONSTORAGE_HPP_
36#include "MB85RS64V.hpp"
Class that stores state and functions for interacting with the RA8875 display controller.
Driver for one MB85RS64V SPI FRAM (8192 bytes) on an STM32 HAL SPI bus.
bool touchCalibrationSave(Adafruit_RA8875 *display, MB85RS64V *fram, tsMatrix_t *matrix)
Saves the calibration matrix to the FRAM and checks it by reading it back.
bool touchCalibrationLoad(Adafruit_RA8875 *display, MB85RS64V *fram, tsMatrix_t *matrix)
Loads the calibration matrix from the FRAM if a valid one is stored.
constexpr uint16_t TOUCH_CAL_ADDRESS
FRAM address of the calibration matrix block written by the RA8875 library.
void touchCalibrationAttachStorage(Adafruit_RA8875 *display, MB85RS64V *fram)
Registers the FRAM read and write callbacks with the display library.
constexpr uint16_t TOUCH_CAL_HEADER_ADDRESS
FRAM address of the 12-byte validity header.