Closed
Description
What is the best way to declare sketch dependencies? For example, my sketch uses Servo library:
#include <Arduino.h>
#include <Servo.h>
// ...
And when somebody wants to use this, it will be difficult for him to understand that you need to install the Servo library first. Describing all dependencies in a readme file or leaving comments with notices looks not enough clear.
Also, it would be great if there was a command flag like arduino-cli libs install --deps-file ./requirements.txt
:
# https://github.com/arduino-libraries/Servo
Servo@1.1.7
Or possibility to define dependencies in a sketch.json
file:
{
"dependencies": {
"Servo": "1.1.7"
}
}
Or sketch.properties
file:
dependencies=Servo@1.1.7, GyverOLED@1.0