The project is created on ESP32. Now I'm at the stage of creating a library for my project. The github link contains many files, please take a look.
I need to make the following mechanism. The kernel located in the library runs tasks, each task contains a function to call. It is necessary that the user can define his task from the file without changing the library file. I have given the simplest similar mechanism here.
Arduino's main() function is typically hidden. It calls setup() and loop(). So fine. Instead of just posting a link to a GitHub with lots of code that has nothing to do with the code you showed in your first post .... please provide a short, complete example of what you're trying to do. Post it all inline here with code tags. Be sure to include both the .h and .cpp files for an example "library" along with a .ino file that uses that "library". The .ino should include setup() and loop(), but notmain().
The idea is that the people volunteering their time and effort here can, after glancing at the code, click a button to copy the .ino, and paste it directly into a new sketch in the Arduino IDE or at wokwi.com, along with another file or two in this case, and try it. Otherwise, we all waste energy (biological and electrical) trying to establish that common baseline. For example, if instead of that thing with main, you posted: