Getting familiar with Arduino CLI
In this first recipe, we will install Arduino CLI on our local machine, to be ready to compile and run the code generated by TVM on any Arduino-compatible microcontroller. This step is essential to learn how to use this tool to create sketches for Arduino Nano and Raspberry Pi Pico.
Getting ready
Arduino CLI (https://arduino.github.io/arduino-cli) is a software package that exposes almost all functionalities bundled in the Arduino IDE into a CLI tool. Therefore, using shell commands, you can use Arduino CLI to create new sketches, download libraries, compile and upload programs on Arduino-compatible microcontrollers, and much more!
Arduino CLI is also available as a Python package (pyduinocli), a wrapper library around Arduino CLI. You can discover more about the Python Arduino CLI at the following link: https://pypi.org/project/pyduinocli/.
To install Arduino CLI, you can follow the instructions reported at the following...