more loggingh

This commit is contained in:
jane 2021-05-26 12:09:37 -04:00
parent 090e241928
commit 2f23b0d06e

View file

@ -63,7 +63,9 @@ export function tick() {
if (!changed) {
tick_pattern();
}
ws281x.render(pixels);
else {
ws281x.render(pixels);
}
ws281x.sleep(cfg.sleep_time || 500);
}
@ -119,6 +121,7 @@ function fade(index) {
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} ` +
`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])}`);
}
}