Skip to content

Instantly share code, notes, and snippets.

@Resseguie
Created June 5, 2014 23:23
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/432c67fe4987d4867fcb to your computer and use it in GitHub Desktop.
Save Resseguie/432c67fe4987d4867fcb to your computer and use it in GitHub Desktop.
Led.RGB.pulse() kills Spark
var five = require('johnny-five'),
Spark = require('../lib/spark'),
board;
// Create Johnny-Five board connected via Spark
board = new five.Board({
io: new Spark({
token: process.env.SPARK_TOKEN,
deviceId: process.env.SPARK_DEVICE_ID
})
});
board.on('ready', function() {
// Initialize the RGB LED
var led = new five.Led.RGB({
pins: {
red: 'A5',
green: 'A6',
blue: 'A7'
}
});
led.pulse();
});
@rwaldron
Copy link

rwaldron commented Jun 6, 2014

Likely too many instruction messages being sent :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment