Skip to content

Instantly share code, notes, and snippets.

View deadprogram's full-sized avatar
💭
Currently available for work. Let's talk!

Ron Evans deadprogram

💭
Currently available for work. Let's talk!
View GitHub Profile
var Cylon = require("cylon");
Cylon.robot({
name: "test",
connections: {
loopback: { adaptor: "loopback" }
},
devices: {
"use strict";
var Cylon = require("cylon");
// ensure you install the API plugin first:
// $ npm install cylon-api-http
Cylon.api();
Cylon.robot({
name: "test",
"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',
package main
import (
"time"
"fmt"
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/firmata"
"github.com/hybridgroup/gobot/platforms/gpio"
)
Data: { delta: 1578240,
theta: 14483712,
loAlpha: 3801088,
hiAlpha: 1507328,
loBeta: 3473408,
hiBeta: 2949120,
loGamma: 2031616,
midGamma: 10420233 }
Data: { delta: 1572864,
theta: 6094848,
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) {
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'}
},
"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
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'
var Cylon = require('cylon');
Cylon.api({
host: '0.0.0.0',
port: '7000',
ssl: false
});
Cylon.robot({
name: 'drenerdo',