def test(): host=meArm.windows() me=meArm.meArm(host) tick() me.claw() tick() me.lift(40) tick() me.lower(40) tick() me.rotateLeft(90) tick() me.rotateRight(90) tick() me.up(40) tick() me.lower(40) tick() me.claw() print("Test Complete")
engine=pyttsx.init() except: print("voice is unavailable") def speak(phrase): try: print(phrase) #engine.say(phrase) #engine.runAndWait() except: print(phrase) speak("initializing") try: me = meArm.meArm(meArm.windows()) except: me = meArm.meArm(meArm.linux()) speak("Testing") me.rotateRight(80) me.forward(35) for i in range(5, 30,5): time.sleep(0.1) me.leftUp(5) i+=5