This file contains a driver for a resistive touch pannel (RTP) More...
Classes | |
| class | rtp_driver.RTP |
| A driver object for a resistive touch pannel. More... | |
Namespaces | |
| rtp_driver | |
Variables | |
| rtp_driver.PIN_xm = Pin(Pin.cpu.A0) | |
| The Nucleo pin connected to RTP xm. More... | |
| rtp_driver.PIN_xp = Pin(Pin.cpu.A1) | |
| The Nucleo pin connected to RTP xp. More... | |
| rtp_driver.PIN_ym = Pin(Pin.cpu.A6) | |
| The Nucleo pin connected to RTP ym. More... | |
| rtp_driver.PIN_yp = Pin(Pin.cpu.A7) | |
| The Nucleo pin connected to RTP yp. More... | |
| rtp_driver.RTP = RTP(PIN_xm,PIN_xp,PIN_ym,PIN_yp,(176,100),(88,50),debug=False) | |
| The RTP objct. More... | |
| string | rtp_driver.mode = 'ctr' |
| The read mode for testing (ctr obj count) More... | |
| rtp_driver.test_type = input('Running test or time test? (r/t): ') | |
| The test type used (running or timed) More... | |
| rtp_driver.test_axis = input('Which axis would you like to test (X Y Z ALL): ') | |
| The axis or collection of axes being sampled. More... | |
| rtp_driver.start = utime.ticks_us() | |
| Test start time in ticks. More... | |
| rtp_driver.x = RTP.scan_x() | |
| x position More... | |
| rtp_driver.stop = utime.ticks_us() | |
| Test stop time in ticks. More... | |
| rtp_driver.run_time = utime.ticks_diff(stop,start) | |
| Test run time in us. More... | |
| rtp_driver.y = RTP.scan_y() | |
| y position More... | |
| rtp_driver.z = RTP.scan_z() | |
| z position More... | |
| rtp_driver.pos = RTP.scan() | |
| Tuple containg x y and z positions. More... | |
This file contains a driver for a resistive touch pannel (RTP)
The class contained within this file is a driver for a resistive touch pannel. It allows for the scanning of x and y contact coordinates as well as contact confirmation. The file also holds test code for the RTP driver. This test code is designed for use with the ME 405 term project hardware.
The source code for this file can be found here: