Command line Arduino compiling and uploading?

后端 未结 11 852
长发绾君心
长发绾君心 2020-12-13 17:37

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 an

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 18:19

    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.

    An ino can be compiled and uploaded with arduino --upload [sketch.ino]

    Documentation

提交回复
热议问题