Comparing version
@@ -168,3 +168,5 @@ "use strict"; | ||
Adaptor.prototype.i2cRead = function(address, cmd, length, callback) { | ||
this.connector.i2cReadOnce(address, cmd, length, callback); | ||
this.connector.i2cReadOnce(address, cmd, length, function(data) { | ||
callback(null, data); | ||
}); | ||
}; |
{ | ||
"name": "cylon-chip", | ||
"description": "Cylon.js adaptor for the C.H.I.P. single-board computer", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
@@ -43,7 +43,5 @@ "homepage": "http://cylonjs.com", | ||
"dependencies": { | ||
"cylon": "^1.2.0", | ||
"chip-io": "^1.0.0", | ||
"cylon-gpio": "^0.27.0", | ||
"cylon-i2c": "^0.23.0" | ||
"cylon": "^1.3.0", | ||
"chip-io": "^1.0.0" | ||
} | ||
} |
# Cylon.js For C.H.I.P. | ||
Cylon.js (http://cylonjs.com) is a JavaScript framework for robotics, physical computing, and the Internet of Things (IoT). | ||
Cylon.js (http://cylonjs.com) is a JavaScript framework for robotics, physical computing, and the Internet of Things (IoT) using Node.js. | ||
@@ -15,5 +15,5 @@ This module provides an adaptor for the C.H.I.P. $9 single-board Linux computer (http://getchip.com/). It uses the Chip-IO node module (https://github.com/sandeepmistry/node-chip-io) created by [@sandeepmistry](https://github.com/sandeepmistry), thank you! | ||
Installing Cylon.js on C.H.I.P. is easy, but must be done on the C.H.I.P. itself, or on another Linux computer. | ||
Installing Cylon.js on C.H.I.P. is easy, but must be done on the C.H.I.P. itself. | ||
$ npm install cylon cylon-chip | ||
$ npm install cylon cylon-chip cylon-gpio cylon-i2c | ||
@@ -20,0 +20,0 @@ ## How to Use |
## Release History | ||
Version 0.2.0 - Use Cylon 1.3.0, fix i2cWrite, cleanup dependencies | ||
Version 0.1.0 - Initial release with support for GPIO & I2C |
13959
4.43%2
-50%15
7.14%228
0.88%- Removed
- Removed
- Removed
- Removed
- Removed
Updated