Created
June 5, 2014 23:23
-
-
Save Resseguie/432c67fe4987d4867fcb to your computer and use it in GitHub Desktop.
Led.RGB.pulse() kills Spark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Likely too many instruction messages being sent :|