Cylon.js (http://cylonjs.com) is a JavaScript framework for robotics, physical computing, and the Internet of Things (IoT).
This repository contains the adaptor/driver for keyboard input. It uses the hybridgroup fork of the keypress module https://github.com/TooTallNate/keypress created by @TooTallNate thank you!
Want to use Ruby on robots? Check out our sister project Artoo (http://artoo.io)
Want to use the Go programming language to power your robots? Check out our sister project Gobot (http://gobot.io).
Installing cylon.js with a keyboard support is pretty easy.
$ npm install cylon cylon-keyboard
var Cylon = require('cylon');
Cylon.robot({
connections: {
keyboard: { adaptor: 'keyboard' }
},
devices: {
keyboard: { driver: 'keyboard' }
},
work: function(my) {
my.keyboard.on('a', function(key) {
console.log("A PRESSED!");
});
}
}).start();
All that you need to do is plug the keyboard into your computer as usual.
We're busy adding documentation to our web site at http://cylonjs.com/ please check there as we continue to work on Cylon.js
Thank you!
For our contribution guidelines, please go to https://github.com/hybridgroup/cylon/blob/master/CONTRIBUTING.md .
For the release history, please go to https://github.com/hybridgroup/cylon-keyboard/blob/master/RELEASES.md .
Copyright (c) 2013-2016 The Hybrid Group. Licensed under the Apache 2.0 license.