UNPKG

johnny-five

Version:

The JavaScript Robotics and Hardware Programming Framework. Use with: Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino One, Pinoccio, Raspberry Pi, Spark Core, TI Launchpad and more!

16 lines (12 loc) 288 B
var five = require("../lib/johnny-five.js"); var board = new five.Board(); board.on("ready", function() { console.log("Connected"); // Initialize the servo instance var servo = new five.Servo({ address: 0x40, controller: "PCA9685", pin: 0, }); servo.sweep(); });