Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scriptTitle = "KeyBoard"
- scriptDescription = "Keyboard Control"
- def onUnlock():
- myo.unlock("hold")
- print("Unlock ! ")
- def onLock():
- print("Lock ! ")
- def onPoseEdge(pose, edge):
- if (edge == "on"):
- print(pose)
- if (pose == 'doubleTap') and (edge == "on"):
- myo.keyboard("right_arrow","press","")
- if (pose == 'fist') and (edge == "on"):
- myo.lock()
Add Comment
Please, Sign In to add comment