From 4d830c0e5651a1d1432077f9df55a7ecbb4ab720 Mon Sep 17 00:00:00 2001 From: pulsareonbot Date: Sat, 4 Jul 2026 12:17:57 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3=20README=20=E4=B8=8E?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=B8=8D=E4=B8=80=E8=87=B4=20(edition=202021?= =?UTF-8?q?=20+=20=E8=A1=A5=20device=20=E6=8F=92=E4=BB=B6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ddd2ee5..75e2732 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,8 @@ ShowenV2/ │ ├── http/ # Web UI + REST API (warp) │ ├── ble/ # BLE 配网 (D-Bus BlueZ) │ ├── wifi/ # WiFi 管理 (nmcli) -│ └── screen/ # 屏幕管理 (防息屏/光标) +│ ├── device/ # 设备能力 (Display/SleepInhibit/Backlight/Cursor) +│ └── screen/ # 屏幕管理 (thin wrapper,转发到 device) ├── plugin-sdk/ # 动态插件开发 SDK ├── plugins/ │ └── example-plugin/ # 示例动态插件 (cdylib) @@ -34,7 +35,7 @@ ShowenV2/ ## 技术栈 -- **语言**: Rust (edition 2018) +- **语言**: Rust (edition 2021) - **视频**: OpenCV 0.66 - **HTTP**: warp + tokio - **BLE**: D-Bus + BlueZ (GATT) @@ -46,7 +47,7 @@ ShowenV2/ ShowenV2 支持两种插件模式: -1. **静态插件** — 编译时链接,5 个内置插件 (video, http, ble, wifi, screen) +1. **静态插件** — 编译时链接,6 个内置插件 (video, http, ble, wifi, device, screen) 2. **动态插件** — 运行时加载 `.so` 文件,通过 `extern "C"` FFI + JSON 序列化通信 动态插件特性: