def main(argv = 0): print "Initializing" BUS = setup.bus( GPIO, SMBUS ) GADDRESS = dlib.GADDRESS US_READ = dlib.uRead_cmd US_DELAY = dlib.uDelay_32bit XYZ_READ = dlib.acc_xyz_cmd rl,rr,fl,fr = dlib.US_sensor_pins() while not setup.ERR_FLAG_: setup.TEST( lambda: setup.US_TEST( TIME, US_DELAY, BUS, GADDRESS, US_READ, dlib.US_Sensors ) ) if setup.ERR_FLAG_: print '\n' break