I need to install this library using the arduino-cli software. I don't know what name to use for the library. Using
arduino-cli lib install <library_name>
I have tried Adafruit_MotorShield
, Adafruit_MotorShield_V2
, and other random combinations and in all cases it cannot found it. In the library manager of the graphical interface it is this one:
1 Answer 1
As pointed out by Juraj♦ in the comments, the name to use can be found in the library.properties
file. There we find name=Adafruit Motor Shield V2 Library
so the command to install the library is:
arduino-cli lib install Adafruit\ Motor\ Shield\ V2\ Library
Note the white spaces are escaped.
-
-
Don't know, I tried at once with that command, which worked.user171780– user1717802022年01月14日 17:24:18 +00:00Commented Jan 14, 2022 at 17:24
library.properties
file.