|
H753_CPP_SPI_Resistive_Touch_Screen_Controller 1.0
STM32H753 SPI resistive touchscreen (Adafruit 333 overlay + 5767 TSC2046 controller) driver and tutorial
|
One touch reading: raw X/Y position and a pressure-proportional resistance value. More...
#include <TSC2046.hpp>
Public Attributes | |
| int16_t | x |
| Raw 12-bit X coordinate (0-4095). Meaningless if not touched. | |
| int16_t | y |
| Raw 12-bit Y coordinate (0-4095). Meaningless if not touched. | |
| float | pressure |
One touch reading: raw X/Y position and a pressure-proportional resistance value.
Mirrors Adafruit_TSC2046's TSPoint, minus the Arduino-only xPercent()/yPercent() convenience methods – dividing x/y by 4096.0f at the call site is one line, not worth a method here.
Definition at line 32 of file TSC2046.hpp.
| float TSC2046TouchPoint::pressure |
Touch resistance in Ohms – LOWER means MORE pressure. 0, NaN, or infinite means "not touching".
Definition at line 35 of file TSC2046.hpp.
Referenced by TSC2046::isTouched(), and tsc2046GetPoint().
| int16_t TSC2046TouchPoint::x |
Raw 12-bit X coordinate (0-4095). Meaningless if not touched.
Definition at line 33 of file TSC2046.hpp.
Referenced by TSC2046::getPoint(), and tsc2046GetPoint().
| int16_t TSC2046TouchPoint::y |
Raw 12-bit Y coordinate (0-4095). Meaningless if not touched.
Definition at line 34 of file TSC2046.hpp.
Referenced by tsc2046GetPoint().