Run this example from the command line with:
node eg/tinkerkit-continuous-servo.js
var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
var servo = new five.Servo({
pin: "O0",
type: "continuous"
});
new five.Sensor("I0").scale(0, 1).on("change", function() {
servo.cw(this.value);
});
});
Illustrations / Photos
TinkerKit Continuous Servo
Learn More