while True:
miniDriver.setSensorConfiguration( sensorConfiguration )
miniDriver.update()
sys.stdout.write ("{0} ".format(miniDriver.getAnalogReadings().data[2]))
sys.stdout.flush()
time.sleep( 0.1 )
To do the comparison you could use if (miniDriver.getAnalogReadings().data[2] > 200)Statistics: Posted by danijazz — Mon May 25, 2015 4:24 pm
]]>