Better battery low animation

This commit is contained in:
2026-04-09 11:22:40 +02:00
parent 9313ae047a
commit 0231ff8f5e

View File

@@ -172,6 +172,23 @@ script:
blue: !lambda return b;
#transition_length: 1s;
- id: set_all_sections_color_animation
parameters:
r: float
g: float
b: float
then:
- repeat:
count: 6
then:
- script.execute:
id: set_section_color
section: !lambda return iteration;
r: !lambda return r;
g: !lambda return g;
b: !lambda return b;
- delay: 200ms
- id: game_ready_animation
then:
- script.execute:
@@ -262,15 +279,11 @@ script:
then:
#- logger.log: "Executing Battery Low script"
# Turn lights on red
- light.turn_off: hexagon_sections
- delay: 1s
- script.execute:
id: set_section_color
section: 0
id: set_all_sections_color_animation
r: 1.0
g: 0.0
b: 0.0
- delay: 1s
# Play battery low tune
- rtttl.play:
rtttl: Battery Low:d=8,o=6,b=600:c6,p,c5,p,2c4