fix(secubox-core): Adjust LED pulse timing to 0.33s (tiers de second)
Changed LED heartbeat tick interval from 0.15s to 0.33s for more visible pulse pattern. Adjusted cycle pause from 8 to 6 ticks. Triple-pulse cycle now spans ~4 seconds total: - 3 beats + 2 gaps + 6 rest = 11 ticks × 0.33s = ~3.6s Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
22caf0c910
commit
aab58a2b43
@ -1127,9 +1127,9 @@ led_heartbeat_loop() {
|
|||||||
local r2=0 g2=255 b2=0 # Threat: green
|
local r2=0 g2=255 b2=0 # Threat: green
|
||||||
local r3=0 g3=255 b3=0 # Capacity: green
|
local r3=0 g3=255 b3=0 # Capacity: green
|
||||||
|
|
||||||
# Pulse timing (in 0.1s units for fine control)
|
# Pulse timing (ticks at 0.33s each = tiers de second)
|
||||||
local beat_gap=1 # Gap between beats in triple
|
local beat_gap=1 # Gap between beats in triple
|
||||||
local cycle_pause=8 # Pause after triple (longer rest)
|
local cycle_pause=6 # Pause after triple (longer rest)
|
||||||
local tick=0 # Current tick in cycle
|
local tick=0 # Current tick in cycle
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
@ -1225,8 +1225,8 @@ led_heartbeat_loop() {
|
|||||||
tick=$((tick + 1))
|
tick=$((tick + 1))
|
||||||
[ "$tick" -ge "$total_cycle" ] && tick=0
|
[ "$tick" -ge "$total_cycle" ] && tick=0
|
||||||
|
|
||||||
# Fine timing: 0.15s per tick for smooth animation
|
# Timing: 0.33s per tick (tiers de second)
|
||||||
sleep 0.15
|
sleep 0.33
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user