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
Data: { delta: 1578240,
theta: 14483712,
loAlpha: 3801088,
hiAlpha: 1507328,
loBeta: 3473408,
hiBeta: 2949120,
loGamma: 2031616,
midGamma: 10420233 }
Data: { delta: 1572864,
theta: 6094848,
package main
import (
"time"
"fmt"
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/firmata"
"github.com/hybridgroup/gobot/platforms/gpio"
)
"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',
"use strict";
var Cylon = require("cylon");
// ensure you install the API plugin first:
// $ npm install cylon-api-http
Cylon.api();
Cylon.robot({
name: "test",
var Cylon = require("cylon");
Cylon.robot({
name: "test",
connections: {
loopback: { adaptor: "loopback" }
},
devices: {
"use strict";
var Cylon = require("cylon");
Cylon.api("http", {host: "0.0.0.0", ssl: false});
var Green = 0x0000FF,
Red = 0xFF0000;
var bots = {
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)
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);
},
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 ;