ME 405
rtp_driver Namespace Reference

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...
 

Variable Documentation

◆ mode

string rtp_driver.mode = 'ctr'

The read mode for testing (ctr obj count)

◆ PIN_xm

rtp_driver.PIN_xm = Pin(Pin.cpu.A0)

The Nucleo pin connected to RTP xm.

◆ PIN_xp

rtp_driver.PIN_xp = Pin(Pin.cpu.A1)

The Nucleo pin connected to RTP xp.

◆ PIN_ym

rtp_driver.PIN_ym = Pin(Pin.cpu.A6)

The Nucleo pin connected to RTP ym.

◆ PIN_yp

rtp_driver.PIN_yp = Pin(Pin.cpu.A7)

The Nucleo pin connected to RTP yp.

◆ pos

rtp_driver.pos = RTP.scan()

Tuple containg x y and z positions.

◆ RTP

rtp_driver.RTP = RTP(PIN_xm,PIN_xp,PIN_ym,PIN_yp,(176,100),(88,50),debug=False)

The RTP objct.

◆ run_time

rtp_driver.run_time = utime.ticks_diff(stop,start)

Test run time in us.

◆ start

rtp_driver.start = utime.ticks_us()

Test start time in ticks.

◆ stop

rtp_driver.stop = utime.ticks_us()

Test stop time in ticks.

◆ test_axis

rtp_driver.test_axis = input('Which axis would you like to test (X Y Z ALL): ')

The axis or collection of axes being sampled.

◆ test_type

rtp_driver.test_type = input('Running test or time test? (r/t): ')

The test type used (running or timed)

◆ x

rtp_driver.x = RTP.scan_x()

x position

◆ y

rtp_driver.y = RTP.scan_y()

y position

◆ z

rtp_driver.z = RTP.scan_z()

z position