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
+2 -1
View File
@@ -2,8 +2,9 @@ LED_COUNT=9
LED_PIN=23 LED_PIN=23
GAMMA=2.2 GAMMA=2.2
TIMEOUT_SECONDS=300 TIMEOUT_SECONDS=60
IDLE_SPEED=2
IDLE_BRIGHTNESS=0.30 IDLE_BRIGHTNESS=0.30
IDLE_R=0 IDLE_R=0
IDLE_G=96 IDLE_G=96
+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