We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0ff5a commit 83ced23Copy full SHA for 83ced23
myo.rst
@@ -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