This file contains 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({ | |
connections: { | |
edison: { adaptor: 'intel-iot' } | |
}, | |
// should be one of the analog pins from 0 to 5 | |
// if using the arduino shield. | |
devices: { |
This file contains 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: '8080' }); | |
cylon.robot({ | |
connections: [ | |
{ name: 'hue', adaptor: 'hue', host: '192.168.1.64', username: '1234567890f' }, | |
{ | |
name: 'sfcon', | |
adaptor: 'force', |
This file contains 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
console.log('WWW blink start ...'); | |
var ledPin = 13; | |
var firmata = require('firmata'); | |
var board = new firmata.Board("/dev/ttyATH0", function(err) { | |
if (err) { | |
console.log(err); | |
board.reset(); |
This file contains 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
/* | |
* Firmata is a generic protocol for communicating with microcontrollers | |
* from software on a host computer. It is intended to work with | |
* any host computer software package. | |
* | |
* To download a host software package, please clink on the following link | |
* to open the download page in your default browser. | |
* | |
* http://firmata.org/wiki/Download | |
*/ |
This file contains 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'); | |
var Bot = function() {}; | |
Bot.prototype.connections = [ | |
{ name: 'leap', adaptor: 'leapmotion', port: '127.0.0.1:6437' }, | |
{ name: 'digispark', adaptor: 'digispark' } | |
]; | |
Bot.prototype.device = [ |