How to reuse an PlatformIO Arduino project as a library?

I want to share several header and sources of an Arduino project (contains loop and setup functions) to another project. From my understanding, I could move these reusable components into a library and create a library.json to transform it as a library. I would like to know if there is an alternative solution that could simply disable the entry functions of a platformio project so that it can be used as a library directly?

No such option exists.

1 Like

Thank you for confirming this