File tree Expand file tree Collapse file tree 7 files changed +56
-0
lines changed Expand file tree Collapse file tree 7 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright (c) 2014, Decoded Ltd dev@decoded.com
7
+ */
8
+
1
9
// Johnny-five speaks StandardFirmata
2
10
var five = require ( 'johnny-five' ) ,
3
11
board = new five . Board ( ) ,
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright (c) 2014, Decoded Ltd dev@decoded.com
7
+ */
8
+
1
9
// grab the leap data
2
10
var webSocket = require ( 'ws' ) ,
3
11
ws = new webSocket ( 'ws://127.0.0.1:6437' ) ,
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright (c) 2014, Decoded Ltd dev@decoded.com
7
+ */
8
+
1
9
// Leap motion enables a websocket with all frame data
2
10
var webSocket = require ( 'ws' ) ,
3
11
ws = new webSocket ( 'ws://127.0.0.1:6437' ) ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright (c) 2014, Decoded Ltd dev@decoded.com
7
+ */
8
+
1
9
// Find the max and min range (in mm) of your leap motion
2
10
// Run for a few minutes while moving hands around
3
11
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright (c) 2014, Decoded Ltd dev@decoded.com
7
+ */
8
+
1
9
// Leap motion enables a websocket with all frame data
2
10
var webSocket = require ( 'ws' ) ,
3
11
ws = new webSocket ( 'ws://127.0.0.1:6437' ) ;
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright (c) 2014, Decoded Ltd dev@decoded.com
7
+ */
8
+
1
9
// Map a servo to a single hand, single axis
2
10
3
11
// grab the leap data
Original file line number Diff line number Diff line change
1
+ /*
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
4
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ *
6
+ * Copyright (c) 2014, Decoded Ltd dev@decoded.com
7
+ */
8
+
1
9
// Map six servos to two hands, trip axis for each hand
2
10
3
11
// Define acceptable ranges, see leap-range.js
You can’t perform that action at this time.
0 commit comments