Command line Arduino compiling and uploading?
问题 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? 回答1: 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 回答2: There is a command-line Arduino toolkit