more loggingh
This commit is contained in:
parent
090e241928
commit
2f23b0d06e
|
@ -63,7 +63,9 @@ export function tick() {
|
||||||
if (!changed) {
|
if (!changed) {
|
||||||
tick_pattern();
|
tick_pattern();
|
||||||
}
|
}
|
||||||
ws281x.render(pixels);
|
else {
|
||||||
|
ws281x.render(pixels);
|
||||||
|
}
|
||||||
ws281x.sleep(cfg.sleep_time || 500);
|
ws281x.sleep(cfg.sleep_time || 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,6 +121,7 @@ function fade(index) {
|
||||||
console.log(`${current_tick_r} ${current_tick_g} ${current_tick_b}: `
|
console.log(`${current_tick_r} ${current_tick_g} ${current_tick_b}: `
|
||||||
+ `CURRENT COLOR: ${current.r} ${current.g} ${current.b} NEW COLOR: ${current.r + interval_r} ${current.g + interval_g} ${current.b + interval_b} ` +
|
+ `CURRENT COLOR: ${current.r} ${current.g} ${current.b} NEW COLOR: ${current.r + interval_r} ${current.g + interval_g} ${current.b + interval_b} ` +
|
||||||
`FINAL: ${final.r} ${final.g} ${final.b} ` +
|
`FINAL: ${final.r} ${final.g} ${final.b} ` +
|
||||||
`INTERVAL: ${interval_r} ${interval_g} ${interval_b}`);
|
`\nINTERVAL: ${interval_r} ${interval_g} ${interval_b} ` +
|
||||||
|
`PREVIOUS: ${int_to_rgb(pixel_cache[index])}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue