Skip to content

Commit 83ced23

Browse files
author
Brandyn A. White
committed
Initial myo docs
Signed-off-by: Brandyn A. White <[email protected]>
1 parent 4c0ff5a commit 83ced23

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

myo.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Myo
2+
===
3+
4+
.. code-block:: guess
5+
6+
<html style="width:100%; height:100%; overflow:hidden">
7+
<body style="width:100%; height:100%; overflow:hidden; margin:0">
8+
<script>
9+
function server() {
10+
WS.myoTrain()
11+
WS.gestureCallback('onMyo', function (x) {
12+
WS.say(x);
13+
});
14+
WS.sensorOn('myoOrientation', .15, function (data) {
15+
WS.log('got data: ' + JSON.stringify(data));
16+
});
17+
WS.sensorOn('myoAccelerometer', .15);
18+
WS.sensorOn('myoGyroscope', .15);
19+
WS.dataLog(false, true, .15);
20+
}
21+
function main() {
22+
if (WS.scriptVersion(1)) return;
23+
WS.serverConnect('{{WSUrl}}', server);
24+
}
25+
window.onload = main;
26+
</script></body></html>

0 commit comments

Comments
 (0)