def back(on): print "back: %s" % on if on: motor.back() else: motor.stop()
def forward(on): print "forward: %s" % on if on: motor.forward() else: motor.stop()
def right(on): print "right: %s" % on if on: motor.right() else: motor.stop()
def stop(): print "stop" arm.stop() motor.stop()
def left(on): print "left: %s" % on if on: motor.left() else: motor.stop()