forked from amkovkov/GranuSightSoftware2
feat: update lights deamon
This commit is contained in:
@@ -2,8 +2,9 @@ LED_COUNT=9
|
||||
LED_PIN=23
|
||||
|
||||
GAMMA=2.2
|
||||
TIMEOUT_SECONDS=300
|
||||
TIMEOUT_SECONDS=60
|
||||
|
||||
IDLE_SPEED=2
|
||||
IDLE_BRIGHTNESS=0.30
|
||||
IDLE_R=0
|
||||
IDLE_G=96
|
||||
|
||||
@@ -540,7 +540,7 @@ class IdleAnimationNewYear(RunningRainbowAnimation): # Новогодняя па
|
||||
return super().get_pixels(time, count)
|
||||
|
||||
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
|
||||
else:
|
||||
IdleAnimation = IdleAnimationUsual
|
||||
|
||||
Reference in New Issue
Block a user