TinyGPU
Loading...
Searching...
No Matches
Public Attributes | List of all members
CalibrationData Struct Reference

Touch calibration configuration. More...

#include <TouchDriverCommon.h>

Public Attributes

int16_t rawXMin = 300
 
int16_t rawXMax = 3800
 
int16_t rawYMin = 300
 
int16_t rawYMax = 3800
 
uint16_t screenWidth = 240
 
uint16_t screenHeight = 320
 
bool invertX = false
 
bool invertY = false
 
bool swapXY = false
 

Detailed Description

Touch calibration configuration.

rawXMin/rawXMax and rawYMin/rawYMax describe the raw controller coordinate ranges.

screenWidth/screenHeight describe the unrotated display dimensions.

swapXY is applied AFTER raw X/Y calibration. This is important when the X and Y calibration ranges differ.

Member Data Documentation

◆ invertX

bool invertX = false

◆ invertY

bool invertY = false

◆ rawXMax

int16_t rawXMax = 3800

◆ rawXMin

int16_t rawXMin = 300

◆ rawYMax

int16_t rawYMax = 3800

◆ rawYMin

int16_t rawYMin = 300

◆ screenHeight

uint16_t screenHeight = 320

◆ screenWidth

uint16_t screenWidth = 240

◆ swapXY

bool swapXY = false

The documentation for this struct was generated from the following file: