Skip to content

Need for better documentation #6

@tochinet

Description

@tochinet

Hi Alexei,
I like your idea of function queues a lot, especially for 8-bit AVR architectures like Nano etc. If you want, I'd like to improve the visibility of your library by helping to make it easy for users to adopt it.
Fact is that when you look at README or the .h file, it is not immediately clear what exactly are the functions, the queues, etc.
Maybe enabling the Wiki in the repo would be a good way to open a space for discussing that.

For example, looking at the code, I see you define fQ, fQP, del_fQ, del_fQP with almost the same code. Maybe you could explain the difference in the README.md file ? Stating something like "the single file antirtos.h contains the definition of four variants of function queues, with increasing features : the fQ class is a queue of functions without parameters. fQP adds a parameter for the function, del_fQ adds the capability to delay the execution of the functions, and del_fQP provides both features."

Actually, did you consider merging the code into a single class ? On memory-constrained devices like AVR-based Arduinos, mixing any of those is likely to require several kBytes of memory for almost duplicate code...

Christophe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions