Command line Arduino compiling and uploading?

后端 未结 11 849
长发绾君心
长发绾君心 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:22

    You can use biicode (it's a project I'm working in) which is based on CMake (but you don't actually need to write any cmake file) and is also a tool to manage Arduino libraries

    It's main features are:

    • Dependencies resolution, transitively, as maven does, but without config files: reads dependencies directly from source code.
    • Central repository, anyone can upload their libraries. They can be explored, navigated and discovered in the web
    • Version control: it checks versions compatibility and allows safe updates of dependencies
    • You can use it with any text editor (it has optional eclipse integration)
    • It manages project setup and compilations, flashes generated firmware to the board

    You can see a quick demo here and read more in the documentation.

提交回复
热议问题