From 5e819c74ed3f00c8aa4e23cb944f59f6d5a8e806 Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Tue, 25 May 2021 23:30:42 -0400 Subject: [PATCH] tick --- index.js | 4 ++++ lights.js | 1 + 2 files changed, 5 insertions(+) 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) {