Question: can / should usermod use a .h file

I notice lots of .h files in the WLED project.
In a usermod I’m working on, there are a lot of compilation conditional defines, so I created a .h file, named it usermod.h, and put them in there.

In the usermod is the #include <usermod.h>

I just wanted to make sure this is compatible with everything people are using to build the solution / compile the binary (or whatever tool used calls compiling the project).

Lastly, if a new category called questions is created, please move this one there.

1 Like

Yes, of course that is ok! If the usermod is large in complexity, it often makes sense to split up the files. This should not lead to any issues whatsoever with compiling as long as users include all the neccessary .h files you have referenced.