Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removes PWMServo constructor. I2C writing issues abound

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
commit f6f8671adc55020ca3644b98e3ff850053b40aa0 1 parent 9faa93e
@rwaldron authored
Showing with 18 additions and 7 deletions.
  1. +10 −1 lib/johnny-five.js
  2. +5 −3 package.json
  3. +3 −3 util/servo-lab.js
View
11 lib/johnny-five.js
@@ -19,6 +19,7 @@
"Nunchuk",
"Ping",
"Pir",
+ // "PWMServo",
"Repl",
"Sensor",
"Servo",
@@ -77,8 +78,16 @@ module.exports.IR.Motion = function( opt ) {
};
+// var Servo = module.exports.Servo;
-
+// module.exports.Servo = function( opts ) {
+// if ( typeof opts === "object" && opts.i2c ) {
+// return new module.exports.PWMServo( opts );
+// }
+// else {
+// return new Servo( opts );
+// }
+//};
View
8 package.json
@@ -1,7 +1,7 @@
{
"name": "johnny-five",
"description": "Firmata based Arduino Programming Framework.",
- "version": "0.5.5",
+ "version": "0.5.7",
"homepage": "https://github.com/rwldrn/johnny-five",
"author": {
"name": "Rick Waldron <waldron.rick@gmail.com>",
@@ -34,7 +34,8 @@
"lodash": ">=0.1.0",
"es6-collections": ">=0.0.1",
"socket.io": "latest",
- "when": "~1.3.0"
+ "when": "~1.3.0",
+ "tobinary": "latest"
},
"devDependencies": {
"nodeunit": ">=0.7.4",
@@ -44,7 +45,8 @@
"lodash": ">=0.1.0",
"es6-collections": ">=0.0.1",
"socket.io": "latest",
- "when": "~1.3.0"
+ "when": "~1.3.0",
+ "tobinary": "latest"
},
"keywords": []
}
View
6 util/servo-lab.js
@@ -4,15 +4,15 @@ var five = require("../lib/johnny-five.js"),
/**
* This program is useful for manual servo administration.
*
- * ex. node eg/servo-diagnostic.js [ pin list ]
+ * ex. node eg/servo-lab.js [ pin list ]
*
* To setup servos on pins 10 and 11:
*
- * node eg/servo-diagnostic.js 10 11
+ * node eg/servo-lab.js 10 11
*
* To setup servos on pins 10 and 11 with custom ranges:
*
- * node eg/servo-diagnostic.js 10:10:170 11
+ * node eg/servo-lab.js 10:10:170 11
*
* Note: Ranges default to 0-180
*
Please sign in to comment.
Something went wrong with that request. Please try again.