diff --git a/index.js b/index.js index 405ec86..e891909 100644 --- a/index.js +++ b/index.js @@ -10,3 +10,7 @@ server.recv( console.log(`error callback: ${res}`); } ); + +while (true) { + lights.tick(); +} \ No newline at end of file diff --git a/lights.js b/lights.js index a35ba11..1e56daa 100644 --- a/lights.js +++ b/lights.js @@ -47,6 +47,7 @@ export function tick() { tick_pattern(); } ws281x.render(pixels); + ws281x.sleep(10); } function fade(index) {