decrease render rate

This commit is contained in:
jane 2021-05-25 23:35:49 -04:00
parent 501c3af95a
commit 9e1c0f5be1
1 changed files with 4 additions and 4 deletions

View File

@ -22,11 +22,11 @@ export function set_pattern(pat) {
function tick_pattern() {
// do the parsing stuff here
for (let i = 0; i < cfg.leds; i++) {
var r = Math.floor(Math.random() * 100)
var g = Math.floor(Math.random() * 100);
var b = Math.floor(Math.random() * 100);
for (let i = 0; i < cfg.leds; i++) {
next_pattern[i] = ((r << 8) + g) << 8 + b;
}
}
@ -43,7 +43,7 @@ export function tick() {
tick_pattern();
}
ws281x.render(pixels);
ws281x.sleep(10);
ws281x.sleep(500);
}
function fade(index) {