def main():
    d = VStrokerDevice.getDeviceList()
    if len(d) == 0:
        print "No devices found!"
        return 1
    print d
    v = VStrokerDevice()
    v.open(d[0])
    try:
        while True:
            l = v.getParsedData()
            if l is None:
                time.sleep(.004)
                continue
            print l
    except __HOLE__:
        return 0
dataset/ETHPy150Open metafetish/buttplug/plugins/vstroker/vstroker.py/main