feat: update lights deamon

This commit is contained in:
2025-12-19 07:40:29 +03:00
parent fcc79fe150
commit e1a5363ae3
2 changed files with 12 additions and 11 deletions
+11 -10
View File
@@ -1,10 +1,11 @@
LED_COUNT=9 LED_COUNT=9
LED_PIN=23 LED_PIN=23
GAMMA=2.2 GAMMA=2.2
TIMEOUT_SECONDS=300 TIMEOUT_SECONDS=60
IDLE_BRIGHTNESS=0.30 IDLE_SPEED=2
IDLE_R=0 IDLE_BRIGHTNESS=0.30
IDLE_G=96 IDLE_R=0
IDLE_B=175 IDLE_G=96
IDLE_B=175
+1 -1
View File
@@ -540,7 +540,7 @@ class IdleAnimationNewYear(RunningRainbowAnimation): # Новогодняя па
return super().get_pixels(time, count) return super().get_pixels(time, count)
today = datetime.datetime.now() today = datetime.datetime.now()
if (today.month == 12 and today.day == 31) or (today.month == 1 and today.day == 1): if (today.month == 12 and today.day > 20) or (today.month == 1 and today.day < 10):
IdleAnimation = IdleAnimationNewYear IdleAnimation = IdleAnimationNewYear
else: else:
IdleAnimation = IdleAnimationUsual IdleAnimation = IdleAnimationUsual