Files
tldr/pages.zh/common/arduino-builder.md

25 lines
644 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.

# arduino-builder
> 编译 Arduino 草图。
> 弃用警告:此工具正在逐步被 `arduino` 取代。
> 更多信息:<https://github.com/arduino/arduino-builder>。
- 编译一个草图:
`arduino-builder -compile {{path/to/sketch.ino}}`
- 指定调试级别默认5
`arduino-builder -debug-level {{1..10}}`
- 指定自定义构建目录:
`arduino-builder -build-path {{path/to/build_directory}}`
- 使用构建选项文件,而不是每次手动指定 `-hardware``-tools` 等:
`arduino-builder -build-options-file {{path/to/build.options.json}}`
- 启用详细模式:
`arduino-builder -verbose {{true}}`