Guest User

Untitled

a guest
Dec 11th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. scriptTitle = "KeyBoard"
  2. scriptDescription = "Keyboard Control"
  3. def onUnlock():
  4. myo.unlock("hold")
  5. print("Unlock ! ")
  6. def onLock():
  7. print("Lock ! ")
  8.  
  9. def onPoseEdge(pose, edge):
  10. if (edge == "on"):
  11. print(pose)
  12. if (pose == 'doubleTap') and (edge == "on"):
  13. myo.keyboard("right_arrow","press","")
  14. if (pose == 'fist') and (edge == "on"):
  15. myo.lock()
Add Comment
Please, Sign In to add comment