servo-pca9685
Advanced tools
Comparing version 0.1.0 to 0.1.1
26
index.js
@@ -48,3 +48,3 @@ // Copyright 2014 Technical Machine, Inc. See the COPYRIGHT | ||
// Enable the outpts | ||
hardware.gpio(3).writeSync(0); | ||
hardware.digital[3].write(0); | ||
@@ -57,4 +57,4 @@ // Configure I2C address | ||
hardware.gpio(2).writeSync(addr2); | ||
hardware.gpio(1).writeSync(addr3); | ||
hardware.digital[2].write(addr2); | ||
hardware.digital[1].write(addr3); | ||
@@ -302,5 +302,4 @@ this.address |= addr2 << 2; | ||
if (err) { | ||
if (callback) { | ||
callback(err, null); | ||
} | ||
callback && callback(err, null); | ||
return; | ||
} | ||
@@ -340,12 +339,13 @@ var newMode = oldMode | 0x10; | ||
}); | ||
} | ||
else { | ||
if (callback) { | ||
callback(null, servos); | ||
} | ||
} else { | ||
setImmediate(function() { | ||
servos.emit('error'); | ||
servos.emit('error', err); | ||
}); | ||
if (callback) { | ||
callback(err); | ||
} | ||
} | ||
if (callback) { | ||
callback(); | ||
} | ||
}); | ||
@@ -352,0 +352,0 @@ return servos; |
{ | ||
"name": "servo-pca9685", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Library to run the PCA9685 PWM driver.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "tinytap -e 'tessel run {} ${SERVO_PORT}' test/*.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/technicalmachine/servo-pca9685.git" | ||
}, | ||
"author": "Jia Huang <jialiya.huang0@gmail.com>", | ||
"repository": "tessel/servo-pca9685", | ||
"author": "Jia Huang <jia@technical.io>", | ||
"license": "MIT", | ||
@@ -22,2 +19,6 @@ "readmeFilename": "README.md", | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"tinytap": "0.0.2" | ||
}, | ||
"keywords": [ | ||
@@ -24,0 +25,0 @@ "tessel", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
27933
9
366
2
0
1
1