Skip to content

Instantly share code, notes, and snippets.

@trigun0x2
Created September 13, 2014 03:26
Show Gist options
  • Save trigun0x2/16a2c5ead16ff79838c2 to your computer and use it in GitHub Desktop.
Save trigun0x2/16a2c5ead16ff79838c2 to your computer and use it in GitHub Desktop.
scriptId = 'com.thalmic.examples.outputeverything'
function forward()
myo.keyboard("down_arrow", "press")
end
function onPoseEdge(pose, edge)
if pose == "fist" then
forward()
end
myo.debug(myo.getRoll())
end
function onPeriodic()
end
function onForegroundWindowChange(app, title)
myo.debug("onForegroundWindowChange: " .. app .. ", " .. title)
return true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment