Problems with current KR:
- Qt
- Manual builds
- Duplication
- Non-intuitive UI
- This gist has more
Problems with current KR:
####Installation instructions
$ npm install cylon cylon-gpio cylon-i2c cylon-firmata cylon-sphero cylon-leapmotion####Arduino blink
//blink.js
var Cylon = require('cylon');| var Cylon = require('cylon'); | |
| Cylon.robot({ | |
| connection: { | |
| name: 'voodoospark', | |
| adaptor: 'voodoospark', | |
| accessToken: 'XXX', | |
| deviceId: 'YYY', | |
| module: 'spark' | |
| }, |
| /* | |
| * 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 | |
| */ |
| 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 ; |
| var Cylon = require('cylon'); | |
| Cylon.robot({ | |
| connection: { | |
| name: 'spark', adaptor: 'spark', | |
| accessToken: 'ecc7a925d3b92bf1f9c942de25a14916a7e4a4bc', | |
| deviceId: '53ff72065067544854310187' | |
| }, | |
| device: |
| 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); | |
| }, | |
| 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) |
| "use strict"; | |
| var Cylon = require("cylon"); | |
| Cylon.api("http", {host: "0.0.0.0", ssl: false}); | |
| var Green = 0x0000FF, | |
| Red = 0xFF0000; | |
| var bots = { |