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