#include <modm/driver/touch/touch2046.hpp>
|
enum | Orientation { Normal
} |
|
template<class SpiMaster, class Cs>
class modm::touch2046< SpiMaster, Cs >
- Author
- Raphael Lehmann
Datasheet TSC2046: https://www.ti.com/lit/ds/symlink/tsc2046.pdf
Run the resumable function.
You need to implement this method in you subclass yourself.
- Returns
- >
NestingError
if still running, <=NestingError
if it has finished.
template<class SpiMaster , class Cs >
Get raw X, Y and Z values
- Returns
- Position and intensity of touch point. Full int16_t range.
- Returns
- the nesting depth in the current resumable function, or -1 if called outside any resumable function
template<class SpiMaster , class Cs >
Get touch position
- Returns
- Position (X, Y) of touch point.
- Returns
true
if a resumable function is running at the current nesting level, else false
template<class SpiMaster , class Cs >
Is screen touched?
- Returns
- bool true if screen is touched
template<class SpiMaster , class Cs >
The documentation for this class was generated from the following file: