johnny-five
Version:
Firmata based Arduino Programming Framework.
61 lines (30 loc) • 1.06 kB
Markdown
Run with:
```bash
node eg/led-strobe.js
```
```javascript
var five = require("johnny-five"),
board, led;
board = new five.Board();
board.on("ready", function() {
// Create a standard `led` hardware instance
led = new five.Led(13);
// "strobe" the led in 100ms on-off phases
led.strobe( 100 );
});
```
<img src="https://raw.github.com/rwldrn/johnny-five/master/docs/breadboard/led-strobe.png">
[](https://github.com/rwldrn/johnny-five/blob/master/docs/breadboard/led-strobe.fzz)
_(Nothing yet)_
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).
_(Nothing yet)_
Copyright (c) 2012 Rick Waldron <waldron.rick@gmail.com>
Licensed under the MIT license.