Hi,
We are glad that you like PlatformIO. Within PlatformIO ecosystem the library can be represented as generic PlatformIO Project. Possible structure:
├── lib
│ ├── mylib
│ │ ├── platformio.ini
│ │ ├── src
│ │ └── test
│ └── readme.txt
├── platformio.ini
└── src
The source code of the library is located in project/lib/mylib/src
. PlatformIO will automatically build your “library project” as a library and link it with main firmware.
Also, please read these: