Skip to content

Commit

Permalink
Update myo docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisnelson committed Oct 8, 2014
1 parent 55e32ac commit 7235ef3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions myo.rst
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
Myo
===
The Myo uses bluetooth-le and can only be connected to Android Kit Kat devices (e.g., Nexus 5). As the SDK is not publicly available you'll need to get the Myo binary of WearScript (currently a private branch) from us. If you are part of the Myo Alpha program we can add you to the repository.
The Myo uses bluetooth-le and can only be connected to Android Kit Kat devices (e.g., Nexus 5).

This demonstrates training the Myo, saying out loud which gesture is performed. NONE is produced after a gesture is stopped (e.g., a clenched fist will stay FIST until it is released and then will be NONE). It also streams the accelerometer, orientation, and gyro to the sensors tab (see WS.dataLog).
This demonstrates pairing the Myo, saying out loud which gesture is performed. Remember, the setup gesture must be performed every time the device is paired before it will return data. NONE is produced after a gesture is stopped (e.g., a clenched fist will stay FIST until it is released and then will be NONE). It also streams the accelerometer, orientation, and gyro to the sensors tab (see WS.dataLog).

.. code-block:: html

<html style="width:100%; height:100%; overflow:hidden">
<body style="width:100%; height:100%; overflow:hidden; margin:0">
<script>
function server() {
WS.myoTrain()
// Currently one of {NONE, FIST, FINGERS_SPREAD, WAVE_IN, WAVE_OUT}
WS.myoPair(function () {
WS.say("paired myo");
});
// Currently one of {NONE, FIST, FINGERS_SPREAD, WAVE_IN, WAVE_OUT, THUMB_TO_PINKY, ARM_RECOGNIZED, ARM_LOST}
WS.gestureCallback('onMyo', function (x) {
WS.say(x);
});
Expand Down

0 comments on commit 7235ef3

Please sign in to comment.