3

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:

enter image description here

user171780
  • 151
  • 1
  • 6

1 Answers1

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.

user171780
  • 151
  • 1
  • 6