Skip to content

Instantly share code, notes, and snippets.

@miduku
Created January 27, 2016 16:28
Show Gist options
  • Save miduku/563e5a8cdb246359aac6 to your computer and use it in GitHub Desktop.
Save miduku/563e5a8cdb246359aac6 to your computer and use it in GitHub Desktop.
Photon LED blink
var config = require('config');
var five = require('johnny-five');
var Particle = require('particle-io');
var board = new five.Board({
io: new Particle({
token: config.get('token'),
deviceId: config.get('id')
})
});
board.on('ready', function(){
var led = new five.Led('D3');
led.blink(500);
// stop dis foo'
this.wait(10000, function() {
led.stop().off();
});
});
@vogelino
Copy link

THx!

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