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"); | |
| // 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
| "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
| 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
| 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
| var DBus = require('dbus'); | |
| var dbus = new DBus(); | |
| var bus = dbus.getBus('system'); | |
| bus.getInterface('com.devicehive.cloud', | |
| '/com/devicehive/cloud', | |
| 'com.devicehive.cloud', | |
| function(err, iface) { | |
| console.log("hi"); | |
| iface.on('CommandReceived', function(data) { |
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.api("http", {host: "0.0.0.0", ssl: false}); | |
| Cylon.robot({ | |
| name: 'mip', | |
| connections: { | |
| bluetooth: {adaptor: 'central', uuid: 'd03972cbc812', module: 'cylon-ble'}, | |
| keyboard: {adaptor: 'keyboard'} | |
| }, |
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"); | |
| function rgbToHex(red, green, blue) { | |
| return blue | (green << 8) | (red << 16); | |
| }; | |
| function convertWave(value) { | |
| // color will be between 0 and 100 |
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
| Setting top to : /tmp/tmppB99wx | |
| Setting out to : /tmp/tmppB99wx/build | |
| Found Pebble SDK for basalt in: : /app/sdk3/Pebble/basalt | |
| Checking for program gcc,cc : arm-none-eabi-gcc | |
| Checking for program ar : arm-none-eabi-ar | |
| Found Pebble SDK for aplite in: : /app/sdk3/Pebble/aplite | |
| Checking for program gcc,cc : arm-none-eabi-gcc | |
| Checking for program ar : arm-none-eabi-ar | |
| 'configure' finished successfully (0.136s) | |
| Waf: Entering directory `/tmp/tmppB99wx/build' |
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.api({ | |
| host: '0.0.0.0', | |
| port: '7000', | |
| ssl: false | |
| }); | |
| Cylon.robot({ | |
| name: 'drenerdo', |