|
LCDGFX LCD display driver
1.2.0
Lightweight graphics library for SSD1306, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107, IL9163, ST7735, ST7789, ILI9341, PCD8544 displays over I2C/SPI
|
Linear calibration mapping raw ADC counts from a resistive touch panel into screen pixel coordinates. More...
#include <touch.h>
Public Member Functions | |
| void | apply (int16_t rawX, int16_t rawY, int16_t &outX, int16_t &outY) const |
| Apply the calibration to a pair of raw ADC samples. More... | |
Linear calibration mapping raw ADC counts from a resistive touch panel into screen pixel coordinates.
The mapping is a per-axis affine transform:
screenX = (raw - rawMin) * screenW / (rawMax - rawMin) screenY = (raw - rawMin) * screenH / (rawMax - rawMin)
with optional axis swap and per-axis inversion to handle different physical mountings of the touch panel relative to the display.
|
inline |