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, pcDuino3, Raspberry Pi, Particle/Spark Core & Photon, Tessel 2, TI Launchpad and more!

21 lines (16 loc) 361 B
var five = require("../lib/johnny-five.js"); var Tessel = require("tessel-io"); var board = new five.Board({ io: new Tessel() }); board.on("ready", function() { console.log("Connected"); // Initialize the servo instance var servo = new five.Servo({ controller: "PCA9685", port: "A", address: 0x73, pin: 1, }); servo.sweep(); });