feat: distinguish RGB alerts by fault type

This commit is contained in:
way
2026-09-27 09:47:03 +08:00
parent 249af5a3e3
commit ad22dcced7
4 changed files with 55 additions and 30 deletions
+13 -8
View File
@@ -139,24 +139,29 @@ wifi_weak_seconds = 30
[led]
# DisplayController 按集中定义的 priority 仲裁 owner,RGB 使用该 owner 的 severity。
# OLED 独立轮播主页与全部当前告警页;切页不会关闭、重启或改变 RGB:
# Warning (1) = 黄色慢呼吸
# Critical (2) = 红色快呼吸
# DisplayController 按集中定义的 priority 仲裁 owner。告警页显示时 RGB 同步显示
# 该页对象;主页使用最高优先级 active owner。颜色表示对象,速度表示严重等级:
# CPU/供电/降频 = 黄色
# 温度 = 红色
# 内存 = 紫色
# 磁盘 = 白色
# 网络/Wi-Fi = 蓝色
# 服务/进程 = 青色
# Warning (1) = 对象颜色慢呼吸
# Critical (2) = 对象颜色快呼吸
# Emergency (3) = 纯红快速频闪
# NORMAL_HOME 为 owner 时 RGB OFF。
#
# 该旧版 MCU 由内置灯效产生呼吸。仅在模式变化时按
# speed -> color -> effect 写入,禁止软件 PWM 和循环帧日志。
# 卖家协议:speed 1=慢、2=中、3=快;color 0=红、3=黄。
# 卖家协议:speed 1=慢、2=中、3=快;color 0..6=红/绿/蓝/黄/紫/青/白。
warning_speed = 1
warning_color = 3
critical_speed = 3
critical_color = 0
write_delay_ms = 10
emergency_flash_ms = 300
# v3.3.0 之前的 brightness、*_breathe_seconds、rgb_update_ms 和 *_r/g/b
# v3.3.0 之前的 brightness、*_breathe_seconds、rgb_update_ms、warning_color、
# critical_color 和 *_r/g/b
# 可以继续留在现有配置中;硬件灯效引擎会安全忽略它们。