命令行 Arduino 编译和上传?
问题描述:
如何在 Mac 和 Linux 上从命令行编译和上传 Arduino 草图?我已经安装了 Arduino 编程环境.是否有一些示例生成文件?
How do I compile and upload Arduino sketches from the command line on Mac and Linux? I've installed the Arduino programming environment. Are there some sample makefiles anywhere?
答
在命令行(在 Windows、Mac 和 Linux 上)上编译和上传草图(与 C/C++ 源代码相关)是通过标志直接支持到从 1.5.0 开始的 arduino 可执行文件.
Compiling and uploading sketches (as apposed to C/C++ sources) on the command line (on Windows, Mac, and Linux) is supported directly via flags to the arduino executable since 1.5.0.
一个ino可以用arduino --upload [sketch.ino]