umouse_set_dpi
Sets a USB mouse DPI by writing the firmware level byte (0-255) to the target device; returns 1 only when the byte is written, so verify via dpiChanged events.
Instructions
DPI 档位的固件字节(协议 03 22 ,非索引非 DPI 数值)。主流固件映射:800→21, 1200→32, 1600→42, 2400→63, 4000→4, 6000→5;其它固件族编码不同。注意:固件对软件设置不回执——返回 1 仅代表字节已写入通道,生效与否以 dpiChanged 事件/光标速度旁证判断。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | 固件档位字节(见工具描述中的映射表) | |
| device_id | No | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |