Skip to content

Instantly share code, notes, and snippets.

@edgarsilva
edgarsilva / example.js
Last active August 29, 2015 14:15
Corrected Maxbotix example.
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: {
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',
@edgarsilva
edgarsilva / www-blink.js
Created July 16, 2014 18:33
Modified WWW blink version of the one created by David here: http://www.appsaloon.be/blog/node-js-arduino-yun/
@edgarsilva
edgarsilva / StandardFirmataForATH0.ino
Created July 16, 2014 18:25
Modified firmata protocol that works on the arduino YUN linux side communicating to the arduino side using the ttyATH0 serialport interface.
/*
* 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
*/
@edgarsilva
edgarsilva / leapmotion.js
Last active August 29, 2015 14:01
leapmotion.js
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 = [