feat(led): OpenVFD sysfs (wifi+eth, alarm, play/lan), skip BT without hci

- Write /sys/class/leds/openvfd led_on/led_off (CLAWD_OPENVFD_PATH)
- WiFi product LED: wifi+eth together; SETUP/APPS -> alarm off/on
- LanLed polls hasWiredCarrier -> play; export led.lan, start/stop from client
- BT monitor only if CLAWD_DISABLE_BT unset and hci* exists (RK3528)
- Display strings remain debug-only (数码管暂不驱动)
- install.sh env template: CLAWD_DISABLE_BT, CLAWD_OPENVFD_PATH comments

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-28 21:35:38 +08:00
parent abd123b3dd
commit 347b19a0c9
3 changed files with 105 additions and 19 deletions

View File

@@ -167,6 +167,10 @@ CLAWD_LOG_LEVEL=info
CLAWD_LOG_FILE=1
# 自定义服务器地址(留空则读 config.json
# CLAWD_SERVER=wss://claw.cutos.ai/ws
# 无蓝牙机型(如部分 RK3528强制不写 bluetoothctl
# CLAWD_DISABLE_BT=1
# OpenVFD sysfs 根路径(默认 /sys/class/leds/openvfd
# CLAWD_OPENVFD_PATH=/sys/class/leds/openvfd
EOF
info "环境变量文件已创建:$ENV_FILE"
fi