命令行 Arduino 编译和上传? [英] Command line Arduino compiling and uploading?

查看:36
本文介绍了命令行 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]

文档

这篇关于命令行 Arduino 编译和上传?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆