refactor: use calibrated RGB alert flashes

This commit is contained in:
way
2026-09-27 10:00:05 +08:00
parent ac9bc4befd
commit adfa5524b8
4 changed files with 23 additions and 39 deletions
+6 -8
View File
@@ -147,19 +147,17 @@ wifi_weak_seconds = 30
# 磁盘 = 白色
# 网络/Wi-Fi = 蓝色
# 服务/进程 = 青色
# Warning (1) = 对象颜色慢呼吸
# Critical (2) = 对象颜色快呼吸
# Warning (1) = 1500ms 亮 / 1500ms 灭
# Critical (2) = 750ms 亮 / 750ms 灭
# Emergency (3) = 对象颜色快速频闪
# NORMAL_HOME 为 owner 时 RGB OFF。
#
# 该旧版 MCU 由内置灯效产生呼吸。仅在模式变化时按
# speed -> color -> effect 写入,禁止软件 PWM 和循环帧日志。
# 卖家协议:speed 1=慢、2=中、3=快;color 0..6=红/绿/蓝/黄/紫/青/白。
warning_speed = 1
critical_speed = 3
# 每次点亮使用 v3.2.0 已验证的 selector -> R -> G -> B 完整写入顺序,
# 只在亮/灭边沿访问 MCU,不做高频软件 PWM。
write_delay_ms = 10
warning_flash_ms = 1500
critical_flash_ms = 750
emergency_flash_ms = 300
power_blink_ms = 750
# v3.3.0 之前的 brightness、*_breathe_seconds、rgb_update_ms、warning_color、
# critical_color 和 *_r/g/b