Permalink
Browse files

flash leds on detection

  • Loading branch information...
substack committed Oct 5, 2012
1 parent 066f426 commit 2d2a125b1bbdb60c7f2e0fd07c4a80036e1b4a65
Showing with 4 additions and 1 deletion.
  1. +1 −1 browser/control.js
  2. +3 −0 server.js
View
@@ -28,7 +28,7 @@ module.exports = function (client) {
},
shift_l: function (n) { client.land(1 * n) },
- f: function (n) { if (n) client.animate('flipAhead') },
+ f: function (n) { if (n) client.animate('flipLeft', 15) },
}
View
@@ -71,9 +71,12 @@ png.on('data', function (buf) {
console.log(Date.now());
client.front(1);
+ client.animateLeds('fire', 5, 1000);
setTimeout(function () {
client.front(0);
+ client.animateLeds('standard', 1, 1000);
+
emitter.emit('unred');
detected = false;
}, 1000);

0 comments on commit 2d2a125

Please sign in to comment.