|
TinyGPU
|
TouchDriver wrapping the stm32f723-disco library's TouchScreen class (on-board FT6x06/FT3x67 capacitive touch controller - bus/pin setup is entirely owned by the library, same as the LCD side).
More...
#include <LCDBoardsSTM32F723Discovery.h>


Public Member Functions | |
| bool | begin () override |
| bool | isTouched () override |
| Return whether the panel currently appears touched. | |
| bool | getPoint (Point &outPoint) override |
| Read the current touch point. | |
| bool | getSecondPoint (Point &outPoint) override |
| The FT6x06/FT3x67 supports up to two simultaneous touches. | |
Public Member Functions inherited from TouchDriver | |
| virtual | ~TouchDriver ()=default |
| virtual bool | begin ()=0 |
| Initialize the controller. | |
| virtual bool | isTouched ()=0 |
| Return whether the panel currently appears touched. | |
| virtual bool | getPoint (Point &outPoint)=0 |
| Read the current touch point. | |
| virtual bool | getSecondPoint (Point &outPoint) |
| Read a second, simultaneous touch point, for multi-touch gestures (pinch/rotate). | |
| void | setRotation (Rotation rotation) |
| Rotation | getRotation () const |
| bool | setCalibration (const CalibrationData &cal) |
| Set and validate calibration. | |
| const CalibrationData & | getCalibration () const |
| bool | hasCalibration () const |
Additional Inherited Members | |
Protected Member Functions inherited from TouchDriver | |
| Point | mapCoordinates (int16_t rawX, int16_t rawY, uint16_t pressure=255) const |
| Convert raw controller coordinates into logical display space. | |
Static Protected Member Functions inherited from TouchDriver | |
| static bool | validateCalibration (const CalibrationData &cal) |
| static int32_t | clamp32 (int32_t value, int32_t minimum, int32_t maximum) |
| Clamp an integer to an inclusive range. | |
| static int32_t | mapRange (int32_t value, int32_t inMin, int32_t inMax, int32_t outMin, int32_t outMax) |
| Map an integer from one range to another. | |
Protected Attributes inherited from TouchDriver | |
| Rotation | rotation_ = Rotation::Deg0 |
| CalibrationData | calibration_ |
| bool | hasCalibration_ = false |
TouchDriver wrapping the stm32f723-disco library's TouchScreen class (on-board FT6x06/FT3x67 capacitive touch controller - bus/pin setup is entirely owned by the library, same as the LCD side).
|
inlineoverridevirtual |
Initializes the touch controller, scaled to the panel's 240x240 resolution (see DisplayDriverSTM32F723Discovery).
Implements TouchDriver.
|
inlineoverridevirtual |
Read the current touch point.
Implements TouchDriver.
|
inlineoverridevirtual |
The FT6x06/FT3x67 supports up to two simultaneous touches.
Reimplemented from TouchDriver.
|
inlineoverridevirtual |
Return whether the panel currently appears touched.
For controllers without an IRQ pin this may perform a controller read.
Implements TouchDriver.