Install new library from github

Yo can do something like this. Edit platformio.ini and add:

lib_deps =
    https://github.com/NormanDunbar/AVRmillis.git

To get the link, go to GitHub.com and find the library you want to use. Then click the green “code” button. When it drops down, click on the HTTPS link, and click the “clipboard” button. This will copy the repository address.

Back in platformio.ini, just paste it where you want it. Hopefully, the library structure on GitHub will be able to be used by PlatformIO.

HTH

Cheers,
Norm.

1 Like