From ffa77db05770c1818de2c4a64b0634f62e722dc4 Mon Sep 17 00:00:00 2001 From: topsinoty Date: Sun, 21 Dec 2025 16:10:41 +0200 Subject: [PATCH] use _lm.tempo and set sleep to 0 --- pyleds/program/promise/ChristmasLights.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyleds/program/promise/ChristmasLights.py b/pyleds/program/promise/ChristmasLights.py index 925d96b..e0b44f6 100644 --- a/pyleds/program/promise/ChristmasLights.py +++ b/pyleds/program/promise/ChristmasLights.py @@ -8,7 +8,7 @@ def name(): class ChristmasLights(Program): def run(self, args: [] = None): # Configuration - wait_ms = 100 # Speed of the animation + wait_ms = 0 # Speed of the animation # Define classic festive colors RED = Color(255, 0, 0) @@ -34,5 +34,5 @@ class ChristmasLights(Program): # Increment offset to move the lights offset = (offset + 1) % (len(colors) * group_size) - + self._lm.get_tempo().wait() time.sleep(wait_ms / 1000.0)