405 Documentation  9.0
lab07.TouchPanel Class Reference

Touch panel class used to hold panel parameters, detect touches, and calculate touch location. More...

Public Member Functions

def __init__ (self, xp, xm, yp, ym, p_len, p_width, center, res=0xfff, delay=3)
 
def xScan (self)
 Return x position [mm].
 
def yScan (self)
 Return y position [mm].
 
def zScan (self)
 Detect touch/no touch.
 
def scan (self)
 Return the results of all three scans as a tuple.
 
def filter (self)
 signal filtering for later implementation
 

Public Attributes

 xp
 
 xm
 
 yp
 
 ym
 
 p_len
 
 p_width
 
 ox
 
 oy
 
 res
 
 delay
 
 hiPin
 
 loPin
 
 vPin
 
 fPin
 

Detailed Description

Touch panel class used to hold panel parameters, detect touches, and calculate touch location.

Constructor & Destructor Documentation

◆ __init__()

def lab07.TouchPanel.__init__ (   self,
  xp,
  xm,
  yp,
  ym,
  p_len,
  p_width,
  center,
  res = 0xfff,
  delay = 3 
)
Parameters
xppin registered to xp
xmpin registered to xm
yppin registered to yp
ympin registered to ym
p_lenpanel length
p_widthpanel width
ADCcenter values (from testing)
oxcoordinate of panel origin (center)
oycoordinate of panel origin (center)
resresolution of adc
delayread delay to ensure signal settled

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