| << Gesamtübersicht | << Klassenübersicht | Details der Klasse | Funktionsbeschreibungen |
TouchEingabe für LCD [Mehr ...]
| Basisklassen(n) | abgeleitete Klassen | |||
|---|---|---|---|---|
|
PecTouch |
|
| Attribut | Typ | Beschreibung |
|---|---|---|
| caliBottom | uint16_t | |
| caliLeft | uint16_t | |
| caliRight | uint16_t | |
| caliTop | uint16_t |
| Attribut | Typ | Beschreibung |
|---|---|---|
| firstX | uint16_t | |
| firstY | uint16_t | |
| lastX | uint16_t | |
| lastY | uint16_t | |
| maxX | uint16_t | |
| maxY | uint16_t | |
| minX | uint16_t | |
| minY | uint16_t | |
| touchPrecision | uint8_t | z.B. 1,10,25,100 (zur Mittelwertbildung) steht in Abhängigkeit zur Abfragerate, je häufiger desto mehr Streuungen somit mehr touchPrecision |
| touchTimeout | volatile uint8_t | Down-Counter für timeouts in der Statemaschine |
| Name | Parameter | Rückgabewert | Beschreibung |
|---|---|---|---|
| calibration | uint8_t posTodo | uint8_t | |
| onGesture | uint8_t type | void | Ereignis das beim Erkennen einer Touch-Geste ausgelöst wird |
| onTouchDown | uint16_t x, uint16_t y | void | |
| onTouching | uint16_t x, uint16_t y | void | |
| onTouchLongDown | x:uint16_t, y:uint16_t | void | |
| onTouchUp | uint16_t x, uint16_t y | void | |
| readTouchPos | uint16_t& posX, uint16_t& posY |
bool | |
| touchChipSelect | void | ||
| touchChipSelectOff | void |
| Name | Parameter | Rückgabewert | Beschreibung |
|---|---|---|---|
| onTimer10ms | void | ||
| readPosData | uint16_t& dataX, uint16_t& dataY |
bool |
TouchEingabe für LCD
Standards die verändert werden können:
#define CaliPrecision 100
#define CaliTolerance 150
| calibration(uint8_t posTodo) uint8_t |
|
| posTodo | wenn 1 links oben, wenn 2 rechts unten |
| onGesture(uint8_t type) void |
|
Ereignis das beim Erkennen einer Touch-Geste ausgelöst wird
| type | GestureToLeft='l', GestureToRight='r', GestureToTop='t', GestureToBottom='b' |
| onTimer10ms() void |
|
| onTouchDown(uint16_t x, uint16_t y) void |
|
| onTouching(uint16_t x, uint16_t y) void |
|
| onTouchLongDown(x:uint16_t, y:uint16_t) void |
|
| onTouchUp(uint16_t x, uint16_t y) void |
|
| readPosData(uint16_t& dataX, uint16_t& dataY) bool |
|
| readTouchPos(uint16_t& posX, uint16_t& posY) bool |
|
| touchChipSelect() void |
|
| touchChipSelectOff() void |
|
| << Gesamtübersicht | << Klassenübersicht | Details der Klasse | Funktionsbeschreibungen |