How to use the libraries that come with the Arduino IDE

Stepper for arduino, like the other “built in” libraries, are available in PlatformIO.

In your platformio.ini, add:

lib_deps=stepper

This is the equivalent of “Sketch->Add Library” in the Arduino IDE.

Then build. The library will be downloaded and installed for the project.

That will add a local folder where one or more libraries can be found. The format should be:

Your_dir_name
    Library_name_1
        name.h
        name.cpp
        other.cpp
    Library_name_2
        ...
    Library_name_3
        ...

For libraries not included in the Arduino IDE, go to PlatformIO Registry and search. Then add to lib_deps.

This explanation might help:

HTH

Cheers,
Norm.

1 Like