Allows the user to read x, y, and z position on a touch panel.
More...
|
def | __init__ (self, Xp, Xm, Yp, Ym, x_overall, y_overall, x_center, y_center) |
| Creates a touch panel object. More...
|
|
def | x_read (self) |
| Scans the x component of the resistive touch pad.
|
|
def | y_read (self) |
| Scans the y component of the resistive touch pad.
|
|
def | z_read (self) |
| Scans the z component of the resistive touch pad.
|
|
def | read_data (self) |
| Scans all 3 coordinates and returns their values as a tuple.
|
|
Allows the user to read x, y, and z position on a touch panel.
◆ __init__()
def TouchPanelDriver.touchy.__init__ |
( |
|
self, |
|
|
|
Xp, |
|
|
|
Xm, |
|
|
|
Yp, |
|
|
|
Ym, |
|
|
|
x_overall, |
|
|
|
y_overall, |
|
|
|
x_center, |
|
|
|
y_center |
|
) |
| |
Creates a touch panel object.
- Parameters
-
Xp | positive X pin |
Xm | negative X pin |
Yp | positive Y pin |
Ym | negative Y pin |
x_overall | width of panel |
y_overall | height of panel |
x_center | center of panel in x direction |
y_center | center of panel in y direction |
The documentation for this class was generated from the following file: