Giter VIP home page Giter VIP logo

Comments (1)

Kirizaki avatar Kirizaki commented on June 23, 2024

We can use arduino-cli for: compilation | adding libraries | uploading sketch.

Below brief instructions how to use arduino-cli based on Getting Started:

  1. Install arduino-cli:
sudo apt install arduino-cli
  1. Update arduino-cli (optional - first use of arduino-cli only)
arduino-cli core update-index
  1. Detect Arduino device
arduino-cli board list
  1. Install proper core
arduino-cli core install <core_name>
  1. Verify installation
arduino-cli core list
  1. Compile .ino:
arduino-cli compile --fqbn <core_name> <ino_file_path>
  1. Upload sketch to Arduino (optional):
arduino-cli upload -p /dev/ttyACM0 --fqbn <core_name> <ino_file_path>
  1. Search required sketch libraries to Arduino (i.e. ArduinoSTL, MySensors):
arduino-cli lib search <lib_name>
  1. Install required sketch libraries on Arduino:
arduino-cli lib install "<lib_name>"

Note#1:
Optional steps can be triggered with specific flag while running process

Note#2:
Steps 7 & 8 maybe must be done before compilation (step 5)

Usage of arduino-cli can be wrapped with any other script (i.e. shell script | Makefile).

from mysensors.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.