test public
Dependencies: HttpServer_snapshot_mbed-os
TouchKey_7_1inch Class Reference
The class to acquire touch coordinates. More...
#include <TouchKey_7_1inch.h>
Inherits TouchKey.
Public Member Functions | |
TouchKey_7_1inch (PinName tprst, PinName tpint, PinName sda=I2C_SDA, PinName scl=I2C_SCL) | |
Create a TouchKey_7_1inch object. | |
virtual int | GetMaxTouchNum (void) |
Get the maximum number of simultaneous touches. | |
virtual int | GetCoordinates (int touch_buff_num, touch_pos_t *p_touch) |
Get the coordinates. | |
void | Reset (void) |
Initialization of touch panel IC. | |
void | SetCallback (void(*fptr)(void)) |
Attach a function to call when touch panel int. | |
template<typename T > | |
void | SetCallback (T *tptr, void(T::*mptr)(void)) |
Attach a member function to call when touch panel int. |
Detailed Description
The class to acquire touch coordinates.
(GR-PEACH 7.1inch LCD Shield edition)
Definition at line 29 of file TouchKey_7_1inch.h.
Constructor & Destructor Documentation
TouchKey_7_1inch | ( | PinName | tprst, |
PinName | tpint, | ||
PinName | sda = I2C_SDA , |
||
PinName | scl = I2C_SCL |
||
) |
Create a TouchKey_7_1inch object.
- Parameters:
-
sda I2C data line pin scl I2C clock line pin tprst tprst pin tpint tpint pin
Definition at line 19 of file TouchKey_7_1inch.cpp.
Member Function Documentation
int GetCoordinates | ( | int | touch_buff_num, |
touch_pos_t * | p_touch | ||
) | [virtual] |
Get the coordinates.
- Parameters:
-
touch_buff_num The number of structure p_touch. p_touch Touch position information.
- Returns:
- The number of touch points.
Implements TouchKey.
Definition at line 27 of file TouchKey_7_1inch.cpp.
int GetMaxTouchNum | ( | void | ) | [virtual] |
Get the maximum number of simultaneous touches.
- Returns:
- The maximum number of simultaneous touches.
Implements TouchKey.
Definition at line 23 of file TouchKey_7_1inch.cpp.
void Reset | ( | void | ) | [inherited] |
Initialization of touch panel IC.
Definition at line 62 of file TouchKey.h.
void SetCallback | ( | void(*)(void) | fptr ) | [inherited] |
Attach a function to call when touch panel int.
- Parameters:
-
fptr A pointer to a void function, or 0 to set as none
Definition at line 74 of file TouchKey.h.
void SetCallback | ( | T * | tptr, |
void(T::*)(void) | mptr | ||
) | [inherited] |
Attach a member function to call when touch panel int.
- Parameters:
-
tptr pointer to the object to call the member function on mptr pointer to the member function to be called
Definition at line 84 of file TouchKey.h.
Generated on Wed Jul 13 2022 05:33:38 by 1.7.2