Skip to content

Instantly share code, notes, and snippets.

@deadprogram
Created July 12, 2015 21:09
Show Gist options
  • Select an option

  • Save deadprogram/4a7f807edbb4ec4ccda1 to your computer and use it in GitHub Desktop.

Select an option

Save deadprogram/4a7f807edbb4ec4ccda1 to your computer and use it in GitHub Desktop.
var Cylon = require('cylon');
Cylon.robot({
connections: { bluetooth: {adaptor: 'central', uuid: 'd03972a493da', module: 'cylon-ble'}},
devices: {mip: {driver: 'mip'}},
work: function(my) {
my.mip.setHeadLED(2, 2, 2, 2);
after((2).seconds(), function() {
my.mip.setGameMode(my.mip.Games.Dance);
});
}
}).start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment