Skip to content

Commit 8a0d79c

Browse files
committed
add timing
1 parent b5cf46d commit 8a0d79c

File tree

1 file changed

+5
-4
lines changed
  • examples/drivers/neostrand/docExample

1 file changed

+5
-4
lines changed

examples/drivers/neostrand/docExample/main.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import Monitor from "pins/digital/monitor";
1818
import { NeoStrand, NeoStrandEffect } from "neostrand";
1919

2020
const Timing_WS2812B = {
21-
mark: { level0: 1, duration0: 18, level1: 0, duration1: 7, },
22-
space: { level0: 1, duration0: 7, level1: 0, duration1: 18, },
23-
reset: { level0: 0, duration0: 600, level1: 0, duration1: 600 }};
21+
mark: { level0: 1, duration0: 900, level1: 0, duration1: 350, },
22+
space: { level0: 1, duration0: 350, level1: 0, duration1: 900, },
23+
reset: { level0: 0, duration0: 100, level1: 0, duration1: 100 }};
2424

2525
const LEN = 144;
2626
const strand = new NeoStrand({length: LEN, pin: 22, order: "RGB", timing: Timing_WS2812B});
@@ -118,5 +118,6 @@ class RandomColor extends NeoStrandEffect {
118118
}
119119
}
120120

121-
manySchemes.push( [ new RandomColor( { strand } ) ]);
121+
let randomColorScheme = [ new RandomColor({ strand }) ];
122+
manySchemes.push( randomColorScheme );
122123

0 commit comments

Comments
 (0)