Comparing version 1.0.0 to 1.0.1
25
index.js
@@ -7,2 +7,3 @@ 'use strict'; | ||
var led = this.led, | ||
duration = duration || 100, | ||
times = [], | ||
@@ -14,3 +15,2 @@ i; | ||
} | ||
console.log(times); | ||
@@ -49,24 +49,1 @@ times.map(function (t) { | ||
/* | ||
# blinker | ||
Blink LEDs on a tessel | ||
## Usage | ||
``` | ||
var blinkerlib = require('blinker'); | ||
var blinker = blinkerlib.use(tessel); | ||
// turn blue on, then off | ||
blinker.blue.on(); | ||
blinker.blue.off(); | ||
// blink 3 times default duratoion (100 ms) | ||
blinker.red.blink(3); | ||
// blink 3 times default duration (50 ms) | ||
blinker.red.blink(6, 50); | ||
``` | ||
*/ |
{ | ||
"name": "blinker", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "blink led (for tessel)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -61,12 +61,13 @@ 'use strict'; | ||
blink.red.blink(1, 10); | ||
blink.red.blink(2, 10); | ||
blink.blue.blink(1); | ||
setTimeout(function () { | ||
expect(mock.led[0].setCount).to.equal(3); | ||
expect(mock.led[1].setCount).to.equal(0); | ||
expect(mock.led[2].setCount).to.equal(2); | ||
expect(mock.led[1].setCount).to.equal(2); | ||
expect(mock.led[2].setCount).to.equal(4); | ||
done(); | ||
}, 50); | ||
}, 150); | ||
}); | ||
}); |
6159
97