This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Data: { delta: 1578240, | |
| theta: 14483712, | |
| loAlpha: 3801088, | |
| hiAlpha: 1507328, | |
| loBeta: 3473408, | |
| hiBeta: 2949120, | |
| loGamma: 2031616, | |
| midGamma: 10420233 } | |
| Data: { delta: 1572864, | |
| theta: 6094848, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "time" | |
| "fmt" | |
| "github.com/hybridgroup/gobot" | |
| "github.com/hybridgroup/gobot/platforms/firmata" | |
| "github.com/hybridgroup/gobot/platforms/gpio" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| var Cylon = require("cylon"); | |
| // ensure you install the API plugin first: | |
| // $ npm install cylon-api-http | |
| Cylon.api("http", { | |
| host: "0.0.0.0", port: 3000, ssl: false, | |
| auth: { | |
| type: 'basic', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| var Cylon = require("cylon"); | |
| // ensure you install the API plugin first: | |
| // $ npm install cylon-api-http | |
| Cylon.api(); | |
| Cylon.robot({ | |
| name: "test", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Cylon = require("cylon"); | |
| Cylon.robot({ | |
| name: "test", | |
| connections: { | |
| loopback: { adaptor: "loopback" } | |
| }, | |
| devices: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| var Cylon = require("cylon"); | |
| Cylon.api("http", {host: "0.0.0.0", ssl: false}); | |
| var Green = 0x0000FF, | |
| Red = 0xFF0000; | |
| var bots = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| peripheral with UUID d03972a24e55 found | |
| Manufacturer Data = 0005ffffffff643ed1 | |
| Service Data = | |
| services and characteristics: | |
| 180a (Device Information) | |
| 2a23 (System ID) | |
| properties read | |
| value 554ea200007239d0 | 'UN"r9P' | |
| 2a26 (Firmware Revision String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Cylon = require('cylon'); | |
| Cylon.robot({ | |
| connection: { name: 'sphero', adaptor: 'sphero', port: '/dev/tty.Sphero-YBW-RN-SPP' }, | |
| device: { name: 'sphero', driver: 'sphero' }, | |
| setColor: function(color) { | |
| my.sphero.setColor(color); | |
| }, | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Cylon = require('cylon'); | |
| Cylon.robot({ | |
| connection: { | |
| name: 'spark', adaptor: 'spark', | |
| accessToken: 'ecc7a925d3b92bf1f9c942de25a14916a7e4a4bc', | |
| deviceId: '53ff72065067544854310187' | |
| }, | |
| device: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Cylon = require('cylon'); | |
| Cylon.robot({ | |
| connection: [{ name: 'rapiro', adaptor: 'rapiro', port: '/dev/ttyAMA0' }, | |
| { name: 'speech', adaptor: 'speech', voice: 'en-f3' }], | |
| devices: [{name: 'rapiro', driver: 'rapiro', connection: 'rapiro'}, | |
| {name: 'mouth', driver: 'speech', connection: 'speech'}], | |
| work: function(my) { | |
| var walking = false ; |