Files
tldr/pages.zh/common/pio-project.md

24 lines
678 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pio 项目
> 管理 PlatformIO 项目。
> 更多信息:<https://docs.platformio.org/en/latest/core/userguide/project/>.
- 初始化一个新的 PlatformIO 项目:
`pio project init`
- 在特定目录中初始化一个新的 PlatformIO 项目:
`pio project init --project-dir {{path/to/project_directory}}`
- 初始化一个新的 PlatformIO 项目,指定一个板 ID
`pio project init --board {{ATmega328P|uno|...}}`
- 初始化一个新的基于 PlatformIO 的项目,指定一个或多个项目选项:
`pio project init --project-option="{{option}}={{value}}" --project-option="{{option}}={{value}}"`
- 打印项目的配置:
`pio project config`