# 使用示例 这些示例用于说明 `line_laser_modbus` 作为库时的常见用法 运行前先同步依赖 ```powershell python -m uv sync --default-index https://mirrors.ustc.edu.cn/pypi/simple ``` 无硬件环境优先运行模拟示例 ```powershell python -m uv run python examples/simulated_basic.py python -m uv run python examples/simulated_polling.py ``` 连接真实串口前先修改根目录 `config.toml` ```powershell python -m uv run python examples/real_serial_read_status.py ```