UNPKG

johnny-five

Version:

Firmata based Arduino Programming Framework.

59 lines (30 loc) 1.03 kB
# Tinkerkit Rotary Run with: ```bash node eg/tinkerkit-rotary.js ``` ```javascript var five = require("johnny-five"); new five.Board().on("ready", function() { var servo = new five.Servo("O0"); new five.Sensor("I1").scale(0, 180).on("change", function() { servo.to( this.scaled ); }); }); ``` ## Breadboard/Illustration <img src="https://raw.github.com/rwldrn/johnny-five/master/docs/breadboard/tinkerkit-rotary.png"> ## Devices - http://www.tinkerkit.com/servo/ - http://www.tinkerkit.com/linear-pot/ - http://www.tinkerkit.com/shield/ ## Documentation _(Nothing yet)_ ## Contributing All contributions must adhere to the [Idiomatic.js Style Guide](https://github.com/rwldrn/idiomatic.js), by maintaining the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt). ## Release History _(Nothing yet)_ ## License Copyright (c) 2012 Rick Waldron <waldron.rick@gmail.com> Licensed under the MIT license.