Include libraries from github

Hello,
I would like to include the libraries stored in github project (GitHub - chipKIT32/chipKIT-core: Downloadable chipKIT core for use with Arduino 1.6 - 1.8+ IDE, PlatformIO, and UECIDE) into my projects in platformio.
Firstly, I wrote down in platformio.ini lib_deps= …git and only the library Firmata was included in libdeps folder but the others not.
I also tried with lib_extra_dirs = C:\Users\home\Documents\PlatformIO\Projects\DigilentTest\lib\dspi2\chipKIT-core\pic32\libraries but it does not work as well.
My intention is to use only DSPI library for MEMS microphone from this chipKIT-core.

In addition, I notice the library update in PIO Home stucked and cannot be finished. Probably is associated together. Here is the description of this error which I posted in github ( platformio/platformio-home).
Can you please help and let me know what I did wrong.
Thank you.
Gabriel

lib_deps can only handle one library, not multiple ones, as discussed in How can I create a repository with multiple libraries in it on GitHub and use them in a project?. For that, the repository should also only contain that single library.

Because the PlatformIO core looks for a PlatformIO compatible manifest file (library.json, library.properties, package.json) in the downloaded content to find the actual root of the package, and it finds it in Firmata, and hence takes this as the root directory.

The library you link to is already in the Arduino core for the PIC32 devices, so it also automatically available in PlatformIO which uses that same core. There is no need to download it, just use it.

You will find that if you e.g. do a normal platformio.ini of

[env:mega_pic32]
platform = microchippic32
board = mega_pic32
framework = arduino

and code

#include <Arduino.h>
#include <DSPI.h>

void setup() {}
void loop() {}

that the library will be found without problems.

Scanning dependencies...
Dependency Graph
|-- <DSPI>
Building in release mode
Compiling .pio/build/mega_pic32/src/main.cpp.o
..
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   2.4% (used 3100 bytes from 131072 bytes)
Flash: [          ]   0.8% (used 4216 bytes from 520192 bytes)
================================= [SUCCESS] Took 3.82 seconds =================================

Hello Max, thank you for your feedback. It looks good now, but I have to test it. I will come back soon but I have one question. Is it not neccesary to also initialize esp32 board?
My mems microphone is connected over SPI with ESP32 board. Later on I would like to store the received values from mems mic in data structure called circular buffer. I would like to connect with my iphone with ESP32 board which will work as access point (quasi router) to be able to read the measured values remotly.

platformio.ini right now:
[env:mega_pic32]
platform = microchippic32
board = mega_pic32
framework = arduino

Oh. You’re not using a PIC32 microcontroller? The ESP32 is an entirely different beast. The library you’re linking too, DSPI, is a Digilent SPI implementation, meant only for a PIC32 chip, not an ESP32.

It’s also not a MEMS microphone library…

No, I am using ESP32 board and I know, that DSPI is not MEMS library but the header file dspi.h was included in example code from digilent.
But you are right, Digilent PmodMIC3 does not support ESP32 boards. I already bought different mems sensor (DollaTek INMP441), which I will use together with ESP32 board. Thank you once again for your help.