25 lines
644 B
Markdown
25 lines
644 B
Markdown
# 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}}` |