Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Resseguie
Created June 6, 2014 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Resseguie/1b1e5985e3249d50c653 to your computer and use it in GitHub Desktop.
Save Resseguie/1b1e5985e3249d50c653 to your computer and use it in GitHub Desktop.
Demonstrates no default pulse rate for RGB
var five = require("johnny-five");
five.Board().on("ready", function() {
// Defaults to pin 11 (must be PWM)
var led = new five.Led(11);
var rgb = new five.Led.RGB([3,5,6]);
led.pulse();
rgb.pulse();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment