add generated christmas lights #9

Merged
pvx merged 4 commits from feat/christmas into master 2025-12-21 14:54:58 +00:00
Showing only changes of commit ffa77db057 - Show all commits

View File

@@ -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)