Help with library dependencies: pre-compilation, and conditional include

hi!

i am writing an Arduino library, which has several dependencies, and my compilation times are getting really long,
is there any way i could pre-compile them, so that when i'm developing i don't have to recompile everything from scratch every time i try something new?

in a more advanced note, my library is using different outputs, such as a Servo and a Thermal Printer,
is there any way that i could make my #include commands be conditional to that variable?
that way, each sketch would not compile all the library dependencies, but only the needed ones?

thanks so much for your help and guidance :slight_smile:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.