Skip to main content

Documentation Index

Fetch the complete documentation index at: https://motorbridge.seeedstudio.com/llms.txt

Use this file to discover all available pages before exploring further.

Source: bindings/python/get_started/courses/08-mode-mixed-switch.md

08 模式混合与切换

本节目标

演示同一程序内的模式切换过程。

运行

python3 bindings/python/get_started/courses/08-mode-mixed-switch.py

关键点

  • 每次切换都显式调用 ensure_mode(...)
  • 切换后立即发送该模式对应命令