diff --git a/config.json b/config.json index cd8f8fa..a0c36a7 100644 --- a/config.json +++ b/config.json @@ -3,5 +3,6 @@ "brightness": 200, "gpio": 18, "type": "grb", - "fade_ticks": 25 + "fade_ticks": 25, + "sleep_time": 100 } \ No newline at end of file diff --git a/lights.js b/lights.js index 1465b54..c610ccf 100644 --- a/lights.js +++ b/lights.js @@ -54,7 +54,7 @@ export function tick() { tick_pattern(); } ws281x.render(pixels); - ws281x.sleep(500); + ws281x.sleep(cfg.sleep_time || 500); } function fade(index) {