johnny-five
Version:
The JavaScript Arduino Programming Framework.
53 lines (30 loc) • 766 B
Markdown
# Led Rgb
Run with:
```bash
node eg/led-rgb.js
```
```javascript
var five = require("johnny-five");
five.Board().on("ready", function() {
var a = new five.Led.RGB([9, 10, 11]);
var b = new five.Led.RGB({
pins: {
red: 3,
green: 5,
blue: 6
}
});
this.repl.inject({
a: a,
b: b
});
a.pulse();
b.pulse();
});
```
## 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).
## License
Copyright (c) 2012 Rick Waldron <waldron.rick@gmail.com>
Licensed under the MIT license.