Resistive Touch Panel Driver
More...
Classes | |
| class | TouchDriver.TouchDriver |
| Resistive touch panel driver class More... | |
Variables | |
| TouchDriver.pinxp = Pin(Pin.cpu.A7) | |
| Positive x-direction pin object. | |
| TouchDriver.pinxm = Pin(Pin.cpu.A1) | |
| Negative x-direction pin object. | |
| TouchDriver.pinyp = Pin(Pin.cpu.A6) | |
| Positive y-direction pin object. | |
| TouchDriver.pinym = Pin(Pin.cpu.A0) | |
| Negative y-direction pin object. | |
| float | TouchDriver.width = 0.108 |
| Width of the touch plate (y-direction) | |
| float | TouchDriver.length = 0.186 |
| Length of the touch plate (x-direction) | |
| list | TouchDriver.center = [0.105,0.067] |
| Coordinates of the center of the plate. | |
| TouchDriver.touchObject = TouchDriver(pinxp,pinxm,pinyp,pinym,width,length,center) | |
| Touch panel driver object. | |
| TouchDriver.startTime = utime.ticks_us() | |
| The time in microseconds directly before method starts. | |
| TouchDriver.zTest = touchObject.zScan() | |
| Test output of zScan() method. | |
| TouchDriver.endTime = utime.ticks_us() | |
| The time in microseconds after method ends. | |
| TouchDriver.xTest = touchObject.xScan() | |
| Test output of xScan() method. | |
| TouchDriver.yTest = touchObject.yScan() | |
| Test output of yScan() method. | |
| int | TouchDriver.timeSum = 0 |
| Total time for 100 read() methods to run. | |
| TouchDriver.readTest = touchObject.read() | |
| Test output of read() method. | |
| TouchDriver.testTime = utime.ticks_diff(endTime,startTime) | |
| The time for one single iteration of the read() method to complete. | |
| int | TouchDriver.timeAvg = timeSum/100 |
| The average time for the read() method to complete over 100 runs. | |
Resistive Touch Panel Driver