Classes | |
| class | RTP |
| A driver object for a resistive touch pannel. More... | |
Variables | |
| PIN_xm = Pin(Pin.cpu.A0) | |
| The Nucleo pin connected to RTP xm. More... | |
| PIN_xp = Pin(Pin.cpu.A1) | |
| The Nucleo pin connected to RTP xp. More... | |
| PIN_ym = Pin(Pin.cpu.A6) | |
| The Nucleo pin connected to RTP ym. More... | |
| PIN_yp = Pin(Pin.cpu.A7) | |
| The Nucleo pin connected to RTP yp. More... | |
| RTP = RTP(PIN_xm,PIN_xp,PIN_ym,PIN_yp,(176,100),(88,50),debug=False) | |
| The RTP objct. More... | |
| string | mode = 'ctr' |
| The read mode for testing (ctr obj count) More... | |
| test_type = input('Running test or time test? (r/t): ') | |
| The test type used (running or timed) More... | |
| test_axis = input('Which axis would you like to test (X Y Z ALL): ') | |
| The axis or collection of axes being sampled. More... | |
| start = utime.ticks_us() | |
| Test start time in ticks. More... | |
| x = RTP.scan_x() | |
| x position More... | |
| stop = utime.ticks_us() | |
| Test stop time in ticks. More... | |
| run_time = utime.ticks_diff(stop,start) | |
| Test run time in us. More... | |
| y = RTP.scan_y() | |
| y position More... | |
| z = RTP.scan_z() | |
| z position More... | |
| pos = RTP.scan() | |
| Tuple containg x y and z positions. More... | |
| string rtp_driver.mode = 'ctr' |
The read mode for testing (ctr obj count)
| rtp_driver.PIN_xm = Pin(Pin.cpu.A0) |
The Nucleo pin connected to RTP xm.
| rtp_driver.PIN_xp = Pin(Pin.cpu.A1) |
The Nucleo pin connected to RTP xp.
| rtp_driver.PIN_ym = Pin(Pin.cpu.A6) |
The Nucleo pin connected to RTP ym.
| rtp_driver.PIN_yp = Pin(Pin.cpu.A7) |
The Nucleo pin connected to RTP yp.
| rtp_driver.pos = RTP.scan() |
Tuple containg x y and z positions.
| rtp_driver.start = utime.ticks_us() |
Test start time in ticks.
| rtp_driver.stop = utime.ticks_us() |
Test stop time in ticks.
| rtp_driver.test_axis = input('Which axis would you like to test (X Y Z ALL): ') |
The axis or collection of axes being sampled.
| rtp_driver.test_type = input('Running test or time test? (r/t): ') |
The test type used (running or timed)
| rtp_driver.x = RTP.scan_x() |
x position
| rtp_driver.y = RTP.scan_y() |
y position
| rtp_driver.z = RTP.scan_z() |
z position