Meyenberg_Project
TouchPanelDriver.touchy Class Reference

Allows the user to read x, y, and z position on a touch panel. More...

Public Member Functions

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.
 

Public Attributes

 x_p
 X+ pin.
 
 x_m
 X- pin.
 
 y_p
 Y+ pin.
 
 y_m
 Y- pin.
 
 x_tot
 Width of panel.
 
 y_tot
 Height of panel.
 
 x_cent
 x center of panel
 
 y_cent
 Center of panel.
 

Detailed Description

Allows the user to read x, y, and z position on a touch panel.

Constructor & Destructor Documentation

◆ __init__()

def TouchPanelDriver.touchy.__init__ (   self,
  Xp,
  Xm,
  Yp,
  Ym,
  x_overall,
  y_overall,
  x_center,
  y_center 
)

Creates a touch panel object.

Parameters
Xppositive X pin
Xmnegative X pin
Yppositive Y pin
Ymnegative Y pin
x_overallwidth of panel
y_overallheight of panel
x_centercenter of panel in x direction
y_centercenter of panel in y direction

The documentation for this class was generated from the following file: